Installing Elmer in Ubuntu 14.04 using Cmake
Re: Installing Elmer in Ubuntu 14.04 using Cmake
Hi Anil,
thanks for your hints. Mysteriously, after a reboot the problem is gone. So the fresh Elmer from launchpad works now.
Thank you!
Matthias
thanks for your hints. Mysteriously, after a reboot the problem is gone. So the fresh Elmer from launchpad works now.
Thank you!
Matthias
Re: Installing Elmer in Ubuntu 14.04 using Cmake
Matthias,
Cheers.
Yours Sincerely,
Anil Kunwar
Cheers.
Yours Sincerely,
Anil Kunwar
Anil Kunwar
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice
Re: Installing Elmer in Ubuntu 14.04 using Cmake
Hi again,
to be sure that my Elmer installation from launchpad really works OK, I would like to run the tests. Is there a way to do this using the tests directory from the source tree? Of course I can do that manually, one by one, but can I somehow get the automated test run to work without having compiled from source?
Thanks,
Matthias
to be sure that my Elmer installation from launchpad really works OK, I would like to run the tests. Is there a way to do this using the tests directory from the source tree? Of course I can do that manually, one by one, but can I somehow get the automated test run to work without having compiled from source?
Thanks,
Matthias
Re: Installing Elmer in Ubuntu 14.04 using Cmake
Matthias,
the command ctest is based upon cmake based installation.
i do not have idea on how we do the testing. normally launchpad based installation of Elmer is usually perfect and uptodate.
perhaps, there may be a command in ubuntu to test the files for the elmer test.
i have never used it however.
Yours Sincerely,
Anil Kunwar
the command ctest is based upon cmake based installation.
i do not have idea on how we do the testing. normally launchpad based installation of Elmer is usually perfect and uptodate.
perhaps, there may be a command in ubuntu to test the files for the elmer test.
i have never used it however.
Yours Sincerely,
Anil Kunwar
Anil Kunwar
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice
-
- Posts: 19
- Joined: 13 Aug 2017, 23:58
- Antispam: Yes
Re: Installing Elmer in Ubuntu 14.04 using Cmake
Hi all,
I am getting the following error during installation. I have verified that the gfortran is installed to its latest version.
Please suggest what is going wrong. This is my first time installation with Elmer.
Thanks and Sincerely,
Shubham
I am getting the following error during installation. I have verified that the gfortran is installed to its latest version.
Code: Select all
[ 66%] Linking Fortran shared library libelmersolver.so
/usr/bin/ld: /usr/local/lib/liblapack.a(dgetrf2.o): relocation R_X86_64_PC32 against symbol `dgetrf2_' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
fem/src/CMakeFiles/elmersolver.dir/build.make:2315: recipe for target 'fem/src/libelmersolver.so' failed
make[2]: *** [fem/src/libelmersolver.so] Error 1
CMakeFiles/Makefile2:737: recipe for target 'fem/src/CMakeFiles/elmersolver.dir/all' failed
make[1]: *** [fem/src/CMakeFiles/elmersolver.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
Thanks and Sincerely,
Shubham
Re: Installing Elmer in Ubuntu 14.04 using Cmake
Hi shubham,
1. As per my experience, cmake based elmer installation is an arts of optimizing the elmer utility as per our flavour and skills. Keep on trying and as per your error log, there is a linking error with some of the shared libraries of elmersolver. the main library pointed out by the log is/are lapack libraries- check their versions and path. so try ticking and unticking many options that come along with elmersolver in the cmake-gui. also, please try using new cmake build when you find the older one produces error during compilation.
2. The easiest way to install elmer in Ubuntu xx.yy version is by using launchpad. For elmer installation issues with launchpad in Ubuntu 17.04, please refer viewtopic.php?f=2&t=4413.
Yours Sincerely,
Anil Kunwar
1. As per my experience, cmake based elmer installation is an arts of optimizing the elmer utility as per our flavour and skills. Keep on trying and as per your error log, there is a linking error with some of the shared libraries of elmersolver. the main library pointed out by the log is/are lapack libraries- check their versions and path. so try ticking and unticking many options that come along with elmersolver in the cmake-gui. also, please try using new cmake build when you find the older one produces error during compilation.
2. The easiest way to install elmer in Ubuntu xx.yy version is by using launchpad. For elmer installation issues with launchpad in Ubuntu 17.04, please refer viewtopic.php?f=2&t=4413.
Yours Sincerely,
Anil Kunwar
Anil Kunwar
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice
Re: Installing Elmer in Ubuntu 14.04 using Cmake
Hello:
Thanks for your instructions, but in my case, the installation don’t works. Let me explain. I use the method B, because the method A I don’t works, because when I’m in the step 4 and when I show the window for put make-gui and then click on configure and search the CMAKE_BUILD_TYPE don’t appears. So, I use the method B and all instalation is correct but when I search de ElmerGUI and edf don’t found, isn’t existed. And I can’t execute the ElmerGUI. Why pass?
I proved that viewtopic.php?f=2&t=3653 and pass the same, they don’t exist.
Thanks for help in advance
Thanks for your instructions, but in my case, the installation don’t works. Let me explain. I use the method B, because the method A I don’t works, because when I’m in the step 4 and when I show the window for put make-gui and then click on configure and search the CMAKE_BUILD_TYPE don’t appears. So, I use the method B and all instalation is correct but when I search de ElmerGUI and edf don’t found, isn’t existed. And I can’t execute the ElmerGUI. Why pass?
I proved that viewtopic.php?f=2&t=3653 and pass the same, they don’t exist.
Thanks for help in advance
Re: Installing Elmer in Ubuntu 14.04 using Cmake
Hi,
if you just want to use Elmer without modifying the code, you don't need to compile.
Have a look at this post: viewtopic.php?f=2&t=6158#p19786
HTH,
Matthias
if you just want to use Elmer without modifying the code, you don't need to compile.
Have a look at this post: viewtopic.php?f=2&t=6158#p19786
HTH,
Matthias
Re: Installing Elmer in Ubuntu 14.04 using Cmake
Daniel,
1. Those posts were written long ago and so , in recent OS or environment, things may be different.
2. I used to try with Method A, and if Cmake build type used to show up for me. Leaving the cmake build type = empty generally sets up the default parameters.
3. Currently I install elmer from launchpad / ppa repository (https://launchpad.net/~elmer-csc-ubuntu ... er-csc-ppa).
4. As suggested by Matthias for Ubuntu 18.04 OS, , if you are interested in using ElmerGUI for launchpad based installation , you have to install elmerfem-csc-eg package instead of elmerfem-csc package (viewtopic.php?f=2&t=6158#p19786). This post describes the procedure for Ubuntu 18.04 . In my Ubuntu 16.04 OS , elmerfem-csc package consists of both GUI and non-GUI features. What is your ubuntu version?
References:
1. https://github.com/ElmerCSC/elmerfem/wiki/Packages
2. viewtopic.php?f=2&t=5607
Yours Sincerely,
Anil Kunwar
1. Those posts were written long ago and so , in recent OS or environment, things may be different.
2. I used to try with Method A, and if Cmake build type used to show up for me. Leaving the cmake build type = empty generally sets up the default parameters.
3. Currently I install elmer from launchpad / ppa repository (https://launchpad.net/~elmer-csc-ubuntu ... er-csc-ppa).
4. As suggested by Matthias for Ubuntu 18.04 OS, , if you are interested in using ElmerGUI for launchpad based installation , you have to install elmerfem-csc-eg package instead of elmerfem-csc package (viewtopic.php?f=2&t=6158#p19786). This post describes the procedure for Ubuntu 18.04 . In my Ubuntu 16.04 OS , elmerfem-csc package consists of both GUI and non-GUI features. What is your ubuntu version?
References:
1. https://github.com/ElmerCSC/elmerfem/wiki/Packages
2. viewtopic.php?f=2&t=5607
Yours Sincerely,
Anil Kunwar
Anil Kunwar
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice
Re: Installing Elmer in Ubuntu 14.04 using Cmake
Hi,
Thanks for all, this method viewtopic.php?f=2&t=6158#p19786 works fast and without problems
Thanks for your help
Thanks for all, this method viewtopic.php?f=2&t=6158#p19786 works fast and without problems
Thanks for your help