LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-05-2011, 04:42 PM   #1
moherpower
LQ Newbie
 
Registered: Dec 2011
Posts: 8

Rep: Reputation: Disabled
need help with php gd.so problems.


this is my problem (error_log)

Unable to load dynamic library '/usr/lib64/php/extensions/gd.so' - libX11.so.6: cannot open shared object file: No such file or directory in Unknown on line 0

BEFORE YOU ANSWER PLZ READ ON !!!

i read posts from this forum about instaling gd library and instaling libX missing packets.
my problem is this i have 2 directories

/usr/lib AND /usr/lib64

all packets was installed in /usr/lib directory

i got symbolic link libX11.so.6 > in directory /usr/lib
my php looks for it in /usr/lib64 and dont find it.

php extensions are in /usr/lib64 so i presume they are 64 bit application.
when i make symbolic link from

/usr/lib64/libX11.so.6 => /usr/lib/libX11.so.6.2.0 (slackware 13) i got this error

Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/gd.so' - libX11.so.6: wrong ELF class: ELFCLASS32 in Unknown on line 0

so i think it needs 64 bit version of libX11 library or what?
on istalation cd i did not find any 64 bit version of this packets.
plz help

Last edited by moherpower; 12-05-2011 at 04:55 PM.
 
Old 12-05-2011, 04:48 PM   #2
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
There was no 64-bit Slackware 12 release, only from 13.0 onwards.
 
Old 12-05-2011, 04:54 PM   #3
moherpower
LQ Newbie
 
Registered: Dec 2011
Posts: 8

Original Poster
Rep: Reputation: Disabled
you are correct. my mistake.

/etc/slackware-version = Slackware 13.1.0


by the way you know the solution to this problem?
 
Old 12-05-2011, 04:57 PM   #4
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
Where did you get the gd library from?
 
Old 12-05-2011, 05:00 PM   #5
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
And are you running 32 or 64-bit?
 
Old 12-05-2011, 05:02 PM   #6
moherpower
LQ Newbie
 
Registered: Dec 2011
Posts: 8

Original Poster
Rep: Reputation: Disabled
downloaded from internet. oryginally there was no gd support in PHP. I did not want to recompile. i read (i dont know on what forum) that i can download gd.so file and do some changes in php.ini file and all will be working.

Last edited by moherpower; 12-05-2011 at 05:05 PM.
 
Old 12-05-2011, 05:05 PM   #7
moherpower
LQ Newbie
 
Registered: Dec 2011
Posts: 8

Original Poster
Rep: Reputation: Disabled
i run php on 64 bit.


--edit----
if you have slak ver 13.1 installed can you post me correct gd.so file?
the one from /usr/lib64/php/extensions

Last edited by moherpower; 12-05-2011 at 05:09 PM.
 
Old 12-05-2011, 05:10 PM   #8
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
If it's gd, the graphics library, it's included in Slackware. No need to download it. Did you do a full install?
I'm running 13.37.

Last edited by brianL; 12-05-2011 at 05:12 PM.
 
Old 12-05-2011, 05:14 PM   #9
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
Download the correct package from one of the official Slackware mirrors, and install it.
 
Old 12-05-2011, 05:16 PM   #10
moherpower
LQ Newbie
 
Registered: Dec 2011
Posts: 8

Original Poster
Rep: Reputation: Disabled
no i dod not made full install. this server was ment to be only fileserver. so i installed only nesesery files no X, and i did not care about proper apache, PHP configuration. after fiuev months plans was changed by my boss and now i have to solve this. cant clean all and reinstall. to much to explain but i have to find the way to force it work.

Last edited by moherpower; 12-05-2011 at 05:18 PM.
 
Old 12-05-2011, 05:29 PM   #11
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
Just try installing that package, like I suggested. Might be OK. No need to reinstall everything.
 
Old 12-05-2011, 05:29 PM   #12
moherpower
LQ Newbie
 
Registered: Dec 2011
Posts: 8

Original Poster
Rep: Reputation: Disabled
i downloaded gd-2.0.35-i486-4.txz
but still have thesame problem
php -m
PHP Startup: Unable to load dynamic library '/usr/lib64/php/extensions/gd.so' - libX11.so.6: cannot open shared object file: No such file or directory in Unknown on line 0

what packages else should i install?

----edit

ok i see the problem wrong package ... i will report back when i take 64 bit version :P

Last edited by moherpower; 12-05-2011 at 05:33 PM.
 
Old 12-05-2011, 05:32 PM   #13
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
gd-2.0.35-i486-4.txz is the 32-bit package, you want the 64-bit.
 
Old 12-05-2011, 05:58 PM   #14
moherpower
LQ Newbie
 
Registered: Dec 2011
Posts: 8

Original Poster
Rep: Reputation: Disabled
ok it looks like it works now.
i had to install all the libX packages 64bit wersions too.

thx for guidience. in my country is 1 past midnight and i work on this stupid server from 20 hours to upgrade soft for new role. that is why i dont think clearly right now but i should have think of reinstaling packages from 64 bit version by my self:P

once again thx.

Last edited by moherpower; 12-05-2011 at 06:01 PM.
 
Old 12-05-2011, 06:04 PM   #15
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
Glad you've sorted it out. Any more Slackware questions, ask them in the Slackware forum. They'll get more attention there.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] problems with PHP, showing code trying to "run" a php file? michaelinux Slackware 1 12-29-2010 10:21 PM
PHP problems mhoqchy Linux - Newbie 2 07-15-2008 06:24 AM
Problems with PHP file functions... (many problems) enigma_0Z Programming 1 04-22-2006 07:15 AM
PHP problems PLEASE HELP!! mrosati Linux - Software 2 10-15-2004 04:01 AM
slackware, apache and PHP from .tgz - problems with PHP szymon Slackware 2 09-06-2004 04:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:40 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