Alternatively, the repository and key can also be installed manually with the following script: sudo apt-get install wget gpg wget -qO- | gpg -dearmor > sudo install -D -o root -g root -m 644 /etc/apt/keyrings/ sudo sh -c 'echo "deb stable main" > /etc/apt//vscode.list' rm -f ![]() deb package will automatically install the apt repository and signing key to enable auto-updating using the system's package manager. Note that other binaries are also available on the VS Code download page. deb # sudo apt-get install -f # Install dependencies deb # If you're on an older Linux distribution, you will need to run this instead: # sudo dpkg -i. deb package (64-bit), either through the graphical software center if it's available, or through the command line with: sudo apt install. The easiest way to install Visual Studio Code for Debian/Ubuntu based distributions is to download and install the. ![]() See the Download Visual Studio Code page for a complete list of available installation options.īy downloading and using Visual Studio Code, you agree to the license terms and privacy statement. Configure IntelliSense for cross-compilingĮdit Visual Studio Code on Linux Installation.Thank you for your help.Įdit: I tried following viewtopic.php?f=2&t=3653&p=12338&hilit=. Building CXX object fem/src/CMakeFiles/elmersolver.dir/ usr/include/hypre/HYPRE_utilities.h:20:10: fatal error: mpi.h: No such file or directory In file included from /usr/include/hypre/_hypre_utilities.h:8,įrom /home/renzo/elmerfem/fem/src/SolveHypre.c:47: Building C object fem/src/CMakeFiles/elmersolver.dir/SolveHypre.c.o In desperation I tried to this command from the sources and compilation to see if it would fix this:Ĭmake -DWITH_ELMERGUI:BOOL=FALSE -DWITH_MPI:BOOL=FALSE -DCMAKE_INSTALL_PREFIX=./install. Building CXX object fem/src/CMakeFiles/elmersolver.dir/ make: *** Error 1 make: *** Waiting for unfinished jobs. Building C object fem/src/CMakeFiles/elmersolver.dir/SolveHypre.c.o In file included from /usr/include/hypre/_hypre_utilities.h:8, from /home/renzo/elmerfem/fem/src/SolveHypre.c:47: /usr/include/hypre/HYPRE_utilities.h:20:10: fatal error: mpi.h: No such file or directory 20 | #include "mpi.h" | ^~~~~~~ compilation terminated. I forget what I did, but I got a different error after doing something: Built target elmersolver make: *** Error 2 Build files have been written to: /home/renzo/build LAPACK library: /usr/lib/x86_64-linux-gnu/liblapack.so /usr/lib/x86_64-linux-gnu/libblas.so BLAS library: /usr/lib/x86_64-linux-gnu/libblas.so checking for thread-local storage - found ELMERSOLVER_RPATH_STRING_MOD $ORIGIN/./lib/elmersolver Found 124 modules from /home/renzo/elmerfem/fem/src/modules Library not found: >MMG_FOUNDMMG_INCLUDE_DIRMMG_LIBRARYNetCDF_FOUNDNetCDF_INCLUDE_DIRNetCDF_LIBRARYNetCDFF_LIBRARYHDF5_FOUNDHDF5_INCLUDE_DIRHDF5_LIBRARYHDF5F_LIBRARY< Mesh adaptation 2D/3D looking for tools Checking whether GFortran version >= 4.8 - yes Implicitly converting 'FILE' to 'STRING' type. elmer.cmakeĬMake Warning (dev) at /home/renzo/elmer.cmake:19 (SET): elmerfem -DMAKE_INSTALL_PREFIX="/home/elmeruser/Elmer" Then I continued, making a build directoryĬmake -C. SET(MPIEXEC_PREFLAGS "-allow-run-as-root" CACHE STRING "") Dont try to automatically pick required packages. ![]() SET(BYPASS_DEB_DEPENDENCIES TRUE CACHE BOOL "") # Elmer packaging specific. "libopenblas-base, libmumps-5.2.1, libopenmpi3, libparmetis4.0, libmetis5, libhypre-2.18.2, libblas.so.3, liblapack.so.3, liboce-modeling11, liboce-foundation11, libqt5widgets5, libqt5script5, libqt5core5a, libqt5gui5, libqt5help5, libqt5opengl5, libvtk6.3, libvtk6.3-qt" CACHE STRING "") SET(MAKE_RPM_PACKAGE FALSE CACHE BOOL "") SET(QWT_LIBRARY "/usr/lib/libqwt-qt5.so.6" CACHE FILE "qwt library file name") SET(ELMER_SOLVER_HOME "/usr/share/elmersolver" CACHE PATH "") SET(Hypre_INCLUDE_DIR "/usr/include/hypre" CACHE PATH "") SET(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING "") Then I followed the video to make the elmer.cmake (precache) file and I deleted the last few lines of code as instructed. Sudo apt-get install -y liboce-modeling-dev \ Sudo apt install -y -no-install-recommends \ Here's the installation process I followed on Ubuntu within a vm. If you recommend restarting and following another installation tutorial, thank you in advance. elmerfem/ -DCMAKE_INSTALL_PREFIX="/home/elmeruser/Elmer" command, and the make -j 3 command. I followed the YouTube video "Elmer compilation for Ubuntu Focal", I typed into the terminal on Ubuntu, and I may have caught errors during the cmake -C. I am using Ubuntu 20.04 on Oracle VM VirtualBox.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |