LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-17-2008, 02:01 PM   #1
ematrix
LQ Newbie
 
Registered: Nov 2008
Posts: 7

Rep: Reputation: 0
LAMP Server


Hey guys I am working on compiling a LAMP server and I got a specific order i am doing it in

1. MySQL
2. LibJPEG
3. LibPNG
4. FreeType
5. Zlib
6. GD2
7. Apache
8. PHP

So it all works good untill i try and make gd 2 ik configure it with ./configure --with-png --with-jpeg=/usr/local/lib --with-freetype

And it works but when i make it

/usr/local/lib/libz.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libgd.la] Error 1
make[2]: Leaving directory `/lampServerFiles/gd-2.0.35'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/lampServerFiles/gd-2.0.35'
make: *** [all] Error 2

THats the error i get. Any ideas?? Thanks


John
 
Old 11-17-2008, 02:12 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
The cause of the error is porobably a bit earlier in the make output. What distro you are using would help too.
 
Old 11-17-2008, 02:27 PM   #3
ematrix
LQ Newbie
 
Registered: Nov 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Fedora

I am using Fedora9 and i didnt get any errors in any previous uses I think i did SOMETHING wrong with zlib but i am not sure. I am new to this so yeah
 
Old 11-17-2008, 02:38 PM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Somehow I doubt that "/usr/local/lib/libz.a: could not read symbols: Bad value" is the first line of make's output.

Why aren't you using yum to install this stuff?
 
Old 11-17-2008, 02:50 PM   #5
ematrix
LQ Newbie
 
Registered: Nov 2008
Posts: 7

Original Poster
Rep: Reputation: 0
[root@localhost gd-2.0.35]# make
make all-recursive
make[1]: Entering directory `/lampServerFiles/gd-2.0.35'
Making all in config
make[2]: Entering directory `/lampServerFiles/gd-2.0.35/config'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/lampServerFiles/gd-2.0.35/config'
Making all in test
make[2]: Entering directory `/lampServerFiles/gd-2.0.35/test'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/lampServerFiles/gd-2.0.35/test'
make[2]: Entering directory `/lampServerFiles/gd-2.0.35'
/bin/sh ./libtool --tag=CC --mode=link gcc -g -O2 -L/usr/local/lib -L/usr/local/lib -L/usr/lib64 -L/usr/local/lib/lib -o libgd.la -rpath /usr/local/lib -version-info 2:0:0 gd.lo gdfx.lo gd_security.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 -ljpeg -lfreetype -lpng12 -lz -lm
gcc -shared .libs/gd.o .libs/gdfx.o .libs/gd_security.o .libs/gd_gd.o .libs/gd_gd2.o .libs/gd_io.o .libs/gd_io_dp.o .libs/gd_gif_in.o .libs/gd_gif_out.o .libs/gd_io_file.o .libs/gd_io_ss.o .libs/gd_jpeg.o .libs/gd_png.o .libs/gd_ss.o .libs/gd_topal.o .libs/gd_wbmp.o .libs/gdcache.o .libs/gdfontg.o .libs/gdfontl.o .libs/gdfontmb.o .libs/gdfonts.o .libs/gdfontt.o .libs/gdft.o .libs/gdhelpers.o .libs/gdkanji.o .libs/gdtables.o .libs/gdxpm.o .libs/wbmp.o -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib -L/usr/local/lib -L/usr/lib64 -L/usr/local/lib/lib /usr/local/lib/libjpeg.so /usr/local/lib/libfreetype.so /usr/local/lib/libpng12.so -lz -lm -Wl,-soname -Wl,libgd.so.2 -o .libs/libgd.so.2.0.0
/usr/bin/ld: /usr/local/lib/libz.a(compress.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libz.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libgd.la] Error 1
make[2]: Leaving directory `/lampServerFiles/gd-2.0.35'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/lampServerFiles/gd-2.0.35'
make: *** [all] Error 2

Is the whole thing I cant use yum because its part of a project for school

we have to compile it all ourselves
 
Old 11-17-2008, 02:53 PM   #6
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
/usr/bin/ld: /usr/local/lib/libz.a(compress.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
 
Old 11-17-2008, 02:55 PM   #7
ematrix
LQ Newbie
 
Registered: Nov 2008
Posts: 7

Original Poster
Rep: Reputation: 0
how can i do that??? I am fairly new with linux

Last edited by ematrix; 11-17-2008 at 03:07 PM.
 
Old 11-17-2008, 03:43 PM   #8
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
You'll need to read the install/readmes etc with the zlib source
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up Ubuntu LAMP Server for local web server sewmyheadon Linux - Newbie 5 02-11-2007 02:06 PM
LAMP Server? carlosinfl Linux - General 5 10-05-2006 12:05 AM
Need help for install LAMP server shun Red Hat 1 04-24-2006 11:49 PM
New LAMP Server dragondefj Linux - General 5 01-31-2006 01:38 AM
Lamp Server kwickcut Mandriva 1 11-25-2005 10:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration