LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   perl compilation problem (https://www.linuxquestions.org/questions/linux-from-scratch-13/perl-compilation-problem-4175605858/)

marcin1509 05-13-2017 01:43 PM

perl compilation problem
 
Hello
I tried to compile Perl and I got an error message
Code:

error while loading shared libraries : libgdm.so.4 Cannot open shared
object file : No such file or directory

Ok I know - this file doesn't exist in /usr/local/lib.
Compilation of gdbm worked fine. Why this file is not created ?
Regards

hazel 05-13-2017 02:07 PM

Are the gdbm utilities (gdbm_dump, gdbm_load and gdbmtool) installed in /usr/bin? If not, you forgot the "make install" step.

marcin1509 05-13-2017 03:10 PM

Quote:

Originally Posted by hazel (Post 5710189)
Are the gdbm utilities (gdbm_dump, gdbm_load and gdbmtool) installed in /usr/bin? If not, you forgot the "make install" step.

yes, it's installed.

hazel 05-14-2017 12:16 AM

Quote:

Originally Posted by marcin1509 (Post 5710179)
Ok I know - this file doesn't exist in /usr/local/lib.
Compilation of gdbm worked fine. Why this file is not created ?
Regards

The library should be in /usr/lib, not /usr/local/lib. Can you check that?

marcin1509 05-14-2017 07:17 AM

Quote:

Originally Posted by hazel (Post 5710381)
The library should be in /usr/lib, not /usr/local/lib. Can you check that?

Yes.
I have this File in this location.
It's a link to file libgdm.so.4.0.0 which is next to It.

hazel 05-14-2017 11:16 AM

Quote:

Originally Posted by marcin1509 (Post 5710512)
Yes.
I have this File in this location.
It's a link to file libgdm.so.4.0.0 which is next to It.

Sorry, which location? Your post is ambiguous. This library and its link should both be in /usr/lib.

If they are there, then I am out of ideas! I suggest you post the problem on the LFS mailing list where a more knowledgeable person can find it.

PS: There is an earlier post in this forum here which might be relevant. The problem I have with it is that their suggested solution shouldn't be necessary. ld should automatically be looking for libraries in /lib and /usr/lib without being told to.

marcin1509 05-14-2017 12:56 PM

In /usr/bin as I mentioned .
I know that there is a post about It but ubfortunately It doesn't work :)

Update :
I had twk files :.
Libgdm.so.4 - the symbolic link to below file
libgdmso.4.0.0 - the File compiler requested

I deleted the link and renamed the second to libgdm.so.4 and It works.


All times are GMT -5. The time now is 03:21 AM.