![cmake install yum cmake install yum](https://user-images.githubusercontent.com/57335825/82662306-79681580-9be2-11ea-9274-0c2c30246339.png)
$ cmake -DWITH_ELMERGUI:BOOL=FALSE -DWITH_MPI:BOOL=FALSE -DCMAKE_INSTALL_PREFIX=./install. Therefore I recommend to use the following sequence of commands although the 3 first commands should not be needed: Sometimes the "cmake" was using the old compilers even having enabled the "devtoolset-2". It is important to make sure that your elmer/build directory is empty before doing the following steps. configure -prefix=/opt/rh/devtoolset-2/root/usr -mandir=/opt/rh/devtoolset-2/root/usr/share/man -infodir=/opt/rh/devtoolset-2/root/usr/share/info -with-bugurl= -enable-bootstrap -enable-shared -enable-threads=posix -enable-checking=release -with-system-zlib -enable-_cxa_atexit -disable-libunwind-exceptions -enable-gnu-unique-object -enable-linker-build-id -enable-languages=c,c++,fortran,lto -enable-plugin -with-linker-hash-style=gnu -enable-initfini-array -disable-libgcj -with-isl=/dev/shm/home/centos/rpm/BUILD/gcc-4.8.2-20140120/obj-x86_64-redhat-linux/isl-install -with-cloog=/dev/shm/home/centos/rpm/BUILD/gcc-4.8.2-20140120/obj-x86_64-redhat-linux/cloog-install -with-mpc=/dev/shm/home/centos/rpm/BUILD/gcc-4.8.2-20140120/obj-x86_64-redhat-linux/mpc-install -with-tune=generic -with-arch_32=i686 -build=x86_64-redhat-linux If you repeat the following command you will see that you have now an updated version:Ĭode: Select all V3(original_taper_ring_2boundaries)]$ scl enable devtoolset-2 V3(original_taper_ring_2boundaries)]$ gcc -vĬOLLECT_LTO_WRAPPER=/opt/rh/devtoolset-2/root/usr/libexec/gcc/x86_64-redhat-linux/4.8.2/lto-wrapperĬonfigured with. the devtools-2 is fully self-contained so it will not mess your machine.Ī2) Install the gcc, binutils, fortran, and C++ packages with:Ī33)Use the “scl” command to activate the "devtools-2" within a terminal: I installed the "devtools-2" for CentOS ( ). (if your have an updated version you can skip this step)
#Cmake install yum update#
I had to update the compilers using the following strategy: (I am not sure which compilers version are "updated" enough to compile Elmer) configure -prefix=/usr -mandir=/usr/share/man -infodir=/usr/share/info -with-bugurl= -enable-bootstrap -enable-shared -enable-threads=posix -enable-checking=release -with-system-zlib -enable-_cxa_atexit -disable-libunwind-exceptions -enable-gnu-unique-object -enable-languages=c,c++,objc,obj-c++,java,fortran,ada -enable-java-awt=gtk -disable-dssi -with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre -enable-libgcj-multifile -enable-java-maintainer-mode -with-ecj-jar=/usr/share/java/eclipse-ecj.jar -disable-libjava-multilib -with-ppl -with-cloog -with-tune=generic -with-arch_32=i686 -build=x86_64-redhat-linux I found much easier to use Option B.Ī) Check the you have the compilers updated:Ĭode: Select all V3(original_taper_ring_2boundaries)]$ gcc -vĬonfigured with. (*) I could manage to do it using cmake-gui too however I had to update some "qt" stuff and I had some troubles launching the make-gui. (check the link at the beginning of the file) there are 2 alternatives: "cmake-gui" or "cmake". Now you have 2 directories in /elmer: /elmer/elmerfem and /elmer/build.Ĥ)The next step generates "cmake" files. The directory elmer/elmerfem has been generated and contains the files downloaded.ģ) Create a directory in the /elmer directory named /build:
![cmake install yum cmake install yum](https://visp-doc.inria.fr/doxygen/visp-2.9.0/img-ccmake-ubuntu-all.png)
#Cmake install yum download#
I will mainly followed the steps decribed here: viewtopic.php?f=2&t=3742ġ) Create a directory to carry out the following steps:Ģ) Download the last Elmer version using the following command: Thanks again to: Peter, Annier, Anil, Juhani, Zhang and Michal. This post is a review of all the steps I followed to have the last version of ElmerSolver smoothly running in my CentOS machine.