[linux] LD_LIBRARY_PATH en tuto?

Résolu/Fermé
ingrid13 Messages postés 144 Date d'inscription vendredi 25 août 2006 Statut Membre Dernière intervention 29 octobre 2010 - 22 juil. 2007 à 10:39
 astic - 13 janv. 2010 à 17:19
Bonjour,

Je refais un thread car j'ai l'impression que personne ne l'a lu le premier...
J'ai un probleme de declaration de variable sur des bibliotheques partagees presente dans /home/.
Dans le cas actuelle mon ordi ne reconnait pas la presence de ces bibliotheques.
Les paths sont certainement mal declares mais pour verifier la bonne configuration de la variable d'env il faudrait de je comprenne mieux cette ensemble... d'ou la recherche d'un bon tuto...

Merci pour toute info.

21 réponses

ingrid13 Messages postés 144 Date d'inscription vendredi 25 août 2006 Statut Membre Dernière intervention 29 octobre 2010 15
23 juil. 2007 à 18:30
Quand je regarde le config.log de /root/salome_3.2.6/KERNEL_BUILD


je ne mets que la parti de OCC car trop long

configure:23764: checking for OpenCascade directories
configure:23783: result: yes
configure:23826: checking wether /usr/bin/g++ accepts -funsigned-char
configure:23839: result: yes
configure:23886: checking config.h usability
configure:23903: /usr/bin/g++ -c  -g -D_DEBUG_  -Wno-deprecated -Wparentheses -Wreturn-type -fmessage-length=0 -Wunused -pipe -Wno-deprecated -Wparentheses -Wreturn-type -Wunused -pthread   -DOCC_VERSION_MAJOR=6 -DOCC_VERSION_MINOR=2 -DOCC_VERSION_MAINTENANCE=0 -DLIN -DLINTEL -DCSFDB -DNo_exception -DHAVE_CONFIG_H -DHAVE_LIMITS_H -DHAVE_WOK_CONFIG_H -DOCC_CONVERT_SIGNALS -I/root/salome_3.2.6/CAS-6.2/inc conftest.cpp >&5
In file included from conftest.cpp:59:
/root/salome_3.2.6/CAS-6.2/inc/config.h:287:1: warning: "PACKAGE" redefined
conftest.cpp:7:1: warning: this is the location of the previous definition
/root/salome_3.2.6/CAS-6.2/inc/config.h:290:1: warning: "PACKAGE_BUGREPORT" redefined
conftest.cpp:6:1: warning: this is the location of the previous definition
/root/salome_3.2.6/CAS-6.2/inc/config.h:293:1: warning: "PACKAGE_NAME" redefined
conftest.cpp:2:1: warning: this is the location of the previous definition
/root/salome_3.2.6/CAS-6.2/inc/config.h:296:1: warning: "PACKAGE_STRING" redefined
conftest.cpp:5:1: warning: this is the location of the previous definition
/root/salome_3.2.6/CAS-6.2/inc/config.h:299:1: warning: "PACKAGE_TARNAME" redefined
conftest.cpp:3:1: warning: this is the location of the previous definition
/root/salome_3.2.6/CAS-6.2/inc/config.h:302:1: warning: "PACKAGE_VERSION" redefined
conftest.cpp:4:1: warning: this is the location of the previous definition
/root/salome_3.2.6/CAS-6.2/inc/config.h:337:1: warning: "VERSION" redefined
conftest.cpp:8:1: warning: this is the location of the previous definition
configure:23909: $? = 0
configure:23923: result: yes
configure:23927: checking config.h presence
configure:23942: /usr/bin/g++ -E   -DOCC_VERSION_MAJOR=6 -DOCC_VERSION_MINOR=2 -DOCC_VERSION_MAINTENANCE=0 -DLIN -DLINTEL -DCSFDB -DNo_exception -DHAVE_CONFIG_H -DHAVE_LIMITS_H -DHAVE_WOK_CONFIG_H -DOCC_CONVERT_SIGNALS -I/root/salome_3.2.6/CAS-6.2/inc conftest.cpp
In file included from conftest.cpp:26:
/root/salome_3.2.6/CAS-6.2/inc/config.h:287:1: warning: "PACKAGE" redefined
conftest.cpp:7:1: warning: this is the location of the previous definition
/root/salome_3.2.6/CAS-6.2/inc/config.h:290:1: warning: "PACKAGE_BUGREPORT" redefined
conftest.cpp:6:1: warning: this is the location of the previous definition
/root/salome_3.2.6/CAS-6.2/inc/config.h:293:1: warning: "PACKAGE_NAME" redefined
conftest.cpp:2:1: warning: this is the location of the previous definition
/root/salome_3.2.6/CAS-6.2/inc/config.h:296:1: warning: "PACKAGE_STRING" redefined
conftest.cpp:5:1: warning: this is the location of the previous definition
/root/salome_3.2.6/CAS-6.2/inc/config.h:299:1: warning: "PACKAGE_TARNAME" redefined
conftest.cpp:3:1: warning: this is the location of the previous definition
/root/salome_3.2.6/CAS-6.2/inc/config.h:302:1: warning: "PACKAGE_VERSION" redefined
conftest.cpp:4:1: warning: this is the location of the previous definition
/root/salome_3.2.6/CAS-6.2/inc/config.h:337:1: warning: "VERSION" redefined
conftest.cpp:8:1: warning: this is the location of the previous definition
configure:23948: $? = 0
configure:23962: result: yes
configure:23995: checking for config.h
configure:24002: result: yes
configure:24020: result: config.h file ok
configure:24034: checking Standard_Type.hxx usability
configure:24051: /usr/bin/g++ -c  -g -D_DEBUG_  -Wno-deprecated -Wparentheses -Wreturn-type -fmessage-length=0 -Wunused -pipe -Wno-deprecated -Wparentheses -Wreturn-type -Wunused -pthread   -DOCC_VERSION_MAJOR=6 -DOCC_VERSION_MINOR=2 -DOCC_VERSION_MAINTENANCE=0 -DLIN -DLINTEL -DCSFDB -DNo_exception -DHAVE_CONFIG_H -DHAVE_LIMITS_H -DHAVE_WOK_CONFIG_H -DOCC_CONVERT_SIGNALS -I/root/salome_3.2.6/CAS-6.2/inc conftest.cpp >&5
In file included from /root/salome_3.2.6/CAS-6.2/inc/Standard_values.h:27,
                 from /root/salome_3.2.6/CAS-6.2/inc/Standard_Integer.hxx:9,
                 from /root/salome_3.2.6/CAS-6.2/inc/Standard_Address.hxx:21,
                 from /root/salome_3.2.6/CAS-6.2/inc/Standard.hxx:28,
                 from /root/salome_3.2.6/CAS-6.2/inc/Standard_Type.hxx:27,
                 from conftest.cpp:59:
/root/salome_3.2.6/CAS-6.2/inc/config.h:287:1: warning: "PACKAGE" redefined
conftest.cpp:7:1: warning: this is the location of the previous definition
/root/salome_3.2.6/CAS-6.2/inc/config.h:290:1: warning: "PACKAGE_BUGREPORT" redefined
conftest.cpp:6:1: warning: this is the location of the previous definition
/root/salome_3.2.6/CAS-6.2/inc/config.h:293:1: warning: "PACKAGE_NAME" redefined
conftest.cpp:2:1: warning: this is the location of the previous definition
/root/salome_3.2.6/CAS-6.2/inc/config.h:296:1: warning: "PACKAGE_STRING" redefined
conftest.cpp:5:1: warning: this is the location of the previous definition
/root/salome_3.2.6/CAS-6.2/inc/config.h:299:1: warning: "PACKAGE_TARNAME" redefined
conftest.cpp:3:1: warning: this is the location of the previous definition
/root/salome_3.2.6/CAS-6.2/inc/config.h:302:1: warning: "PACKAGE_VERSION" redefined
conftest.cpp:4:1: warning: this is the location of the previous definition
/root/salome_3.2.6/CAS-6.2/inc/config.h:337:1: warning: "VERSION" redefined
conftest.cpp:8:1: warning: this is the location of the previous definition
configure:24057: $? = 0
configure:24071: result: yes
configure:24075: checking Standard_Type.hxx presence
configure:24090: /usr/bin/g++ -E   -DOCC_VERSION_MAJOR=6 -DOCC_VERSION_MINOR=2 -DOCC_VERSION_MAINTENANCE=0 -DLIN -DLINTEL -DCSFDB -DNo_exception -DHAVE_CONFIG_H -DHAVE_LIMITS_H -DHAVE_WOK_CONFIG_H -DOCC_CONVERT_SIGNALS -I/root/salome_3.2.6/CAS-6.2/inc conftest.cpp
In file included from /root/salome_3.2.6/CAS-6.2/inc/Standard_values.h:27,
                 from /root/salome_3.2.6/CAS-6.2/inc/Standard_Integer.hxx:9,
                 from /root/salome_3.2.6/CAS-6.2/inc/Standard_Address.hxx:21,
                 from /root/salome_3.2.6/CAS-6.2/inc/Standard.hxx:28,
                 from /root/salome_3.2.6/CAS-6.2/inc/Standard_Type.hxx:27,
                 from conftest.cpp:26:
/root/salome_3.2.6/CAS-6.2/inc/config.h:287:1: warning: "PACKAGE" redefined
conftest.cpp:7:1: warning: this is the location of the previous definition
/root/salome_3.2.6/CAS-6.2/inc/config.h:290:1: warning: "PACKAGE_BUGREPORT" redefined
conftest.cpp:6:1: warning: this is the location of the previous definition
/root/salome_3.2.6/CAS-6.2/inc/config.h:293:1: warning: "PACKAGE_NAME" redefined
conftest.cpp:2:1: warning: this is the location of the previous definition
/root/salome_3.2.6/CAS-6.2/inc/config.h:296:1: warning: "PACKAGE_STRING" redefined
conftest.cpp:5:1: warning: this is the location of the previous definition
/root/salome_3.2.6/CAS-6.2/inc/config.h:299:1: warning: "PACKAGE_TARNAME" redefined
conftest.cpp:3:1: warning: this is the location of the previous definition
/root/salome_3.2.6/CAS-6.2/inc/config.h:302:1: warning: "PACKAGE_VERSION" redefined
conftest.cpp:4:1: warning: this is the location of the previous definition
/root/salome_3.2.6/CAS-6.2/inc/config.h:337:1: warning: "VERSION" redefined
conftest.cpp:8:1: warning: this is the location of the previous definition
configure:24096: $? = 0
configure:24110: result: yes
configure:24143: checking for Standard_Type.hxx
configure:24150: result: yes
configure:24166: checking for OpenCascade libraries
configure:24200: /usr/bin/g++ -o conftest  -g -D_DEBUG_  -Wno-deprecated -Wparentheses -Wreturn-type -fmessage-length=0 -Wunused -pipe -Wno-deprecated -Wparentheses -Wreturn-type -Wunused -pthread   -DOCC_VERSION_MAJOR=6 -DOCC_VERSION_MINOR=2 -DOCC_VERSION_MAINTENANCE=0 -DLIN -DLINTEL -DCSFDB -DNo_exception -DHAVE_CONFIG_H -DHAVE_LIMITS_H -DHAVE_WOK_CONFIG_H -DOCC_CONVERT_SIGNALS -I/root/salome_3.2.6/CAS-6.2/inc  conftest.cpp -lm -lrt -ldl   -L/root/salome_3.2.6/CAS-6.2/Linux/lib  -lTKernel >&5
In file included from /root/salome_3.2.6/CAS-6.2/inc/Standard_values.h:27,
                 from /root/salome_3.2.6/CAS-6.2/inc/Standard_Integer.hxx:9,
                 from /root/salome_3.2.6/CAS-6.2/inc/Standard_CString.hxx:23,
                 from /root/salome_3.2.6/CAS-6.2/inc/TCollection_AsciiString.hxx:26,
                 from conftest.cpp:26:
/root/salome_3.2.6/CAS-6.2/inc/config.h:287:1: warning: "PACKAGE" redefined
conftest.cpp:7:1: warning: this is the location of the previous definition
/root/salome_3.2.6/CAS-6.2/inc/config.h:290:1: warning: "PACKAGE_BUGREPORT" redefined
conftest.cpp:6:1: warning: this is the location of the previous definition
/root/salome_3.2.6/CAS-6.2/inc/config.h:293:1: warning: "PACKAGE_NAME" redefined
conftest.cpp:2:1: warning: this is the location of the previous definition
/root/salome_3.2.6/CAS-6.2/inc/config.h:296:1: warning: "PACKAGE_STRING" redefined
conftest.cpp:5:1: warning: this is the location of the previous definition
/root/salome_3.2.6/CAS-6.2/inc/config.h:299:1: warning: "PACKAGE_TARNAME" redefined
conftest.cpp:3:1: warning: this is the location of the previous definition
/root/salome_3.2.6/CAS-6.2/inc/config.h:302:1: warning: "PACKAGE_VERSION" redefined
conftest.cpp:4:1: warning: this is the location of the previous definition
/root/salome_3.2.6/CAS-6.2/inc/config.h:337:1: warning: "VERSION" redefined
conftest.cpp:8:1: warning: this is the location of the previous definition
conftest.cpp: In function 'int main()':
conftest.cpp:31: warning: unused variable 'size'
/root/salome_3.2.6/CAS-6.2/Linux/lib/libTKernel.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_S_empty_rep_storage'
/root/salome_3.2.6/CAS-6.2/Linux/lib/libTKernel.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_create(unsigned int, std::allocator<char> const&)'
/root/salome_3.2.6/CAS-6.2/Linux/lib/libTKernel.so: undefined reference to `std::basic_streambuf<char, std::char_traits<char> >::_M_out_cur_move(long)'
collect2: ld returned 1 exit status
configure:24206: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "Salome2 Project"
| #define PACKAGE_TARNAME "salome"
| #define PACKAGE_VERSION "3.2.5"
| #define PACKAGE_STRING "Salome2 Project 3.2.5"
| #define PACKAGE_BUGREPORT "gboulant@CS"
| #define PACKAGE "salome"
| #define VERSION "3.2.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define HAVE_LIBDL 1
| #define HAVE_LIBRT 1
| #define HAVE_LIBM 1
| #define HAVE_NAMESPACES
| #define HAVE_PTHREAD 1
| /* end confdefs.h.  */
| #include <TCollection_AsciiString.hxx>
| 
| int
| main ()
| {
| size_t size;
|     TCollection_AsciiString aStr ("toto");
|     aStr.Capitalize();
|   ;
|   return 0;
| }
configure:24232: result: no
configure:24234: WARNING: Opencascade libraries not found
config



Je ne comprends tous tres bien mais je vois qu'il trouve bien les lib....
configure:24166: checking for OpenCascade libraries
configure:24200: /usr/bin/g++ -o conftest  -g -D_DEBUG_  -Wno-deprecated -Wparentheses -Wreturn-type -fmessage-length=0 -Wunused -pipe -Wno-deprecated -Wparentheses -Wreturn-type -Wunused -pthread   -DOCC_VERSION_MAJOR=6 -DOCC_VERSION_MINOR=2 -DOCC_VERSION_MAINTENANCE=0 -DLIN -DLINTEL -DCSFDB -DNo_exception -DHAVE_CONFIG_H -DHAVE_LIMITS_H -DHAVE_WOK_CONFIG_H -DOCC_CONVERT_SIGNALS -I/root/salome_3.2.6/CAS-6.2/inc  conftest.cpp -lm -lrt -ldl   -L/root/salome_3.2.6/CAS-6.2/Linux/lib  -lTKernel >&5
In file included from /root/salome_3.2.6/CAS-6.2/inc/Standard_values.h:27,
                 from /root/salome_3.2.6/CAS-6.2/inc/Standard_Integer.hxx:9,
                 from /root/salome_3.2.6/CAS-6.2/inc/Standard_CString.hxx:23,
                 from /root/salome_3.2.6/CAS-6.2/inc/TCollection_AsciiString.hxx:26,
                 from conftest.cpp:26:
/root/salome_3.2.6/CAS-6.2/inc/config.h:287:1: warning: "PACKAGE" redefined
conftest.cpp:7:1: warning: this is the location of the previous definition
/root/salome_3.2.6/CAS-6.2/inc/config.h:290:1: warning: "PACKAGE_BUGREPORT" redefined
conftest.cpp:6:1: warning: this is the location of the previous definition
/root/salome_3.2.6/CAS-6.2/inc/config.h:293:1: warning: "PACKAGE_NAME" redefined
conftest.cpp:2:1: warning: this is the location of the previous definition
/root/salome_3.2.6/CAS-6.2/inc/config.h:296:1: warning: "PACKAGE_STRING" redefined
conftest.cpp:5:1: warning: this is the location of the previous definition
/root/salome_3.2.6/CAS-6.2/inc/config.h:299:1: warning: "PACKAGE_TARNAME" redefined
conftest.cpp:3:1: warning: this is the location of the previous definition
/root/salome_3.2.6/CAS-6.2/inc/config.h:302:1: warning: "PACKAGE_VERSION" redefined
conftest.cpp:4:1: warning: this is the location of the previous definition
/root/salome_3.2.6/CAS-6.2/inc/config.h:337:1: warning: "VERSION" redefined
conftest.cpp:8:1: warning: this is the location of the previous definition
conftest.cpp: In function 'int main()':
conftest.cpp:31: warning: unused variable 'size'
/root/salome_3.2.6/CAS-6.2/Linux/lib/libTKernel.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_S_empty_rep_storage'
/root/salome_3.2.6/CAS-6.2/Linux/lib/libTKernel.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_create(unsigned int, std::allocator<char> const&)'
/root/salome_3.2.6/CAS-6.2/Linux/lib/libTKernel.so: undefined reference to `std::basic_streambuf<char, std::char_traits<char> >::_M_out_cur_move(long)'
collect2: ld returned 1 exit status
configure:24206: $? = 1



Je supose que les warnings a propos de salome2 version3.2.5 c'est qu'il remarque qu'il n'y a pas la presence de la version precedente de salome. L'actuelle que j'install est la 3.2.6.

C'est presque sur que c'est un probleme de LD_LIB_PATH ou un script env_XXX.sh que j'omets, qui ne marche pas
je ne sais pas
la reponse a ta question
echo $LD_LIBRARY_PATH rien pas de reponse!
-1