1/31/2024 0 Comments Toptracker alternativeI ran into this issue on my Ubuntu-64 system when attempting to import fst within python as such: Python 3.4.3 |Continuum Analytics, Inc.| (default, Jun 4 2015, 15:29:08) Grr, that was simple! Also, "if you ever happen to want to link against the installed libraries," seriously? See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. have your system administrator add LIBDIR to `/etc/ld.so.conf'.use the `-Wl,-rpath -Wl,LIBDIR' linker flag.add LIBDIR to the `LD_RUN_PATH' environment variable during linking.add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution.If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: Libraries have been installed in: /usr/local/lib/./lib32 You can find this and the other solutions mentioned briefly when you install gcc if you read the make output: There are other ways as well to fix this issue. The simplest way to fix this is to use the LD_LIBRARY_PATH environment variable, which is a colon-separated list of directories in which the linker will search for shared libraries. Because the linker can't find the right version, we have to tell it where to find the libstdc++ library. According to the FAQs for libstdc++, the error that we got means that the dynamic linker found the wrong version of the libstdc++ shared library. When you compile and install GCC it puts the libraries in one of these directories, but that's all it does. Why do we need to add the library to LD_LIBRARY_PATH? Others have reported the library path /usr/lib/x86_64-linux-gnu/ working for them instead. export LD_LIBRARY_PATH="/usr/local/lib64/:$LD_LIBRARY_PATH"įor some, the library path will be /usr/local/lib64/. GCC requires you to tell it where your library is located manually when it can't find the right version, which can be done in a few ways. Add the library's path to the LD_LIBRARY_PATH environment variable TL DR
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |