CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > SU2 > SU2 Installation

Problems with libdl.so.2 library

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 18, 2023, 06:45
Angry Problems with libdl.so.2 library
  #1
New Member
 
Gianmarco Farro
Join Date: Apr 2023
Posts: 3
Rep Power: 3
Gianmarco$ is on a distinguished road
When installing SU2 7.5.1 on Ubuntu 20.04 using the ninja command, I faced the following problem:


[496/503] Linking target SU2_CFD/src/SU2_CFD
FAILED: SU2_CFD/src/SU2_CFD
c++ -o SU2_CFD/src/SU2_CFD SU2_CFD/src/SU2_CFD.p/SU2_CFD.cpp.o -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -Wl,-rpath,/usr/lib/x86_64-linux-gnu/openmpi/lib -Wl,-rpath-link,/usr/lib/x86_64-linux-gnu/openmpi/lib -Wl,--start-group SU2_CFD/src/libSU2core.a externals/metis/libmetis.a externals/parmetis/libparmetis.a externals/tecio/teciompisrc/libteciompi.a subprojects/CoolProp/libCoolProp.a Common/src/libSU2Common.a /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi.so /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_cxx.so -Wl,--end-group
/usr/bin/ld: subprojects/CoolProp/libCoolProp.a(src_Backends_REFPROP_REFPROPMixtureB ackend.cpp.o): undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
/usr/bin/ld: /lib/x86_64-linux-gnu/libdl.so.2: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
[498/503] Compiling C++ object SU2_DOT/src/SU2_DOT.p/SU2_DOT.cpp.o
ninja: build stopped: subcommand failed.


The build was made with:


./meson.py build -Denable-coolprop=true -Denable-cgns=false --prefix=/home/gianmarco/SU2/SU2_src

and the installation with:


./ninja -C build install

Does anyone know how can I solve the problem?
Gianmarco$ is offline   Reply With Quote

Old   April 20, 2023, 02:25
Default
  #2
Member
 
PENG YAN
Join Date: Jul 2021
Location: Italy
Posts: 34
Rep Power: 4
PENGGEGE777 is on a distinguished road
It seems that you have some issue of openmpi.


try:
$ sudo apt install libopenmpi-dev


then re-compile and re-build.
PENGGEGE777 is offline   Reply With Quote

Old   April 20, 2023, 02:35
Default
  #3
New Member
 
Gianmarco Farro
Join Date: Apr 2023
Posts: 3
Rep Power: 3
Gianmarco$ is on a distinguished road
Thanks for the reply!

The problem was the make version... maybe it was too old. Upgrading to version 4.4.1 made the trick, since the compilerò was able to use dl libraries and dlopen notably.
Gianmarco$ is offline   Reply With Quote

Reply

Tags
ninja installation failed, su2 installation error


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding material to CFX material library marlon CFX 2 October 16, 2016 09:33
The fl process could not be started because of UDF majid_kamyab Fluent UDF and Scheme Programming 6 December 15, 2015 08:42
Rheolef: a C++ finite element library for solving PDE (annonce) saramito Main CFD Forum 0 October 14, 2009 04:58
Problems in personal library compilation shrina OpenFOAM 3 February 23, 2009 11:12
Personal library compilation mss OpenFOAM Running, Solving & CFD 1 September 13, 2007 06:10


All times are GMT -4. The time now is 16:19.