LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   problems with gd-library (https://www.linuxquestions.org/questions/linux-newbie-8/problems-with-gd-library-229710/)

anttu 09-12-2004 12:47 PM

problems installing gd-library
 
I've got a problem when I'm trying to compile the gd-library version 2.0.28 on my RH 8.0 box.
Configure goes through without problem...
I have jpeg png gif and truetype2 support

I get the following when I run make:


rm -fr .libs/libgd.la .libs/libgd.* .libs/libgd.*
gcc -shared gd.lo gdfx.lo gd_gd.lo gd_gd2.lo gd_io.lo gd_io_dp.lo gd_gif_in.lo gd_gif_out.lo gd_io_file.lo gd_io_ss.lo gd_jpeg.lo gd_png.lo gd_ss.lo gd_topal.lo gd_wbmp.lo gdcache.lo gdfontg.lo gdfontl.lo gdfontmb.lo gdfonts.lo gdfontt.lo gdft.lo gdhelpers.lo gdkanji.lo gdtables.lo gdxpm.lo wbmp.lo -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib -L/usr/local/lib -L/home/bla/files/linux_progs/source/gd-2.0.28 -ljpeg /usr/local/lib/libfreetype.so -lpng12 -lz -lm -Wl,--rpath -Wl,/usr/local/lib -Wl,-rpath -Wl,-soname -Wl,libgd.so.2 -o .libs/libgd.so.2.0.0
/usr/bin/ld: cannot open libgd.so.2: No such file or directory
collect2: ld returned 1 exit status
make[2]: *** [libgd.la] Error 1
make[2]: Leaving directory `/home/bla/files/linux_progs/source/gd-2.0.28'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/bla/files/linux_progs/source/gd-2.0.28'
make: *** [all] Error 2

I don't understand where it looks for libgd.so.2, it's present under /usr/local/lib/ but should it be somewhere else??

I'm stucked! HELP!

/Anttu

rjlee 09-12-2004 01:06 PM

I don't know, but it's not trying to read libgd.so.2.

If the output is libgd.so.2.0.0 (to which libgd.so.2 is just a symbolic link), then I wouldn't expect it to be reading libgd.so.2 at all.

This bit:[quote]-Wl,-soname -Wl,libgd.so.2[/code] just tells the linker the name of the shared object file it's to create, and I don't see any other reference to libgd.so.2 there.

It may actually be saying that it can't create the libgd.so.2 file (i.e. .libs/libgd.so.2.0.0). Does the .libs directory exist, and can you write to it?

anttu 09-12-2004 03:44 PM

[QUOTE]Originally posted by rjlee
I don't know, but it's not trying to read libgd.so.2.

If the output is libgd.so.2.0.0 (to which libgd.so.2 is just a symbolic link), then I wouldn't expect it to be reading libgd.so.2 at all.

This bit:
Quote:

-Wl,-soname -Wl,libgd.so.2[/code] just tells the linker the name of the shared object file it's to create, and I don't see any other reference to libgd.so.2 there.

It may actually be saying that it can't create the libgd.so.2 file (i.e. .libs/libgd.so.2.0.0). Does the .libs directory exist, and can you write to it?

If it's trying to create the file, in which directory does it try to make it??
Is it in /usr/local/lib (.libs/libgd.so.2.0.0)
or
is it in /home/bla/...../gd-2.0.28/ (.libs/libgd.so.2.0.0) ??

under those directories there isn't any libs directory...
What should I do next??

/Anttu

anttu 09-13-2004 06:16 AM

anyone!?!? HELP!!

rjlee 09-13-2004 06:20 AM

Quote:

Originally posted by anttu
If it's trying to create the file, in which directory does it try to make it??
Is it in /usr/local/lib (.libs/libgd.so.2.0.0)
or
is it in /home/bla/...../gd-2.0.28/ (.libs/libgd.so.2.0.0) ??

under those directories there isn't any libs directory...
What should I do next??

/Anttu

It should be creating it in /home/bla/...../gd-2.0.28/.libs

Note that .libs is (because of the leading dot) a hidden directory; you'll need to use ls -al .libs to see it.

anttu 09-13-2004 09:31 AM

Quote:

Originally posted by rjlee
It should be creating it in /home/bla/...../gd-2.0.28/.libs

Note that .libs is (because of the leading dot) a hidden directory; you'll need to use ls -al .libs to see it.

OK, the folder is there and I can create a file called libgd.so.2.0.0 by my self, but why can't make do it??
The folder has drwxr-xr-x permissions...

/Anttu

rjlee 09-13-2004 01:48 PM

Are you running make as another user, such as root? If so, you won't be able to create the file because only the owner has write-access to that directory.

anttu 09-13-2004 02:21 PM

Quote:

Originally posted by rjlee
Are you running make as another user, such as root? If so, you won't be able to create the file because only the owner has write-access to that directory.
I run make as root, yes, but the directory is owned by root and it doesn't help that the whole tree down is owned by root....
I can't just understand what could be wrong!?!???!?! :confused: :scratch:
I'm going crazy soon... :cry:

anttu 09-14-2004 03:28 AM

up


All times are GMT -5. The time now is 01:56 PM.