LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-10-2010, 05:26 PM   #1
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
Need PHP/Pear extension GD


Code:
pear/Image_Color requires PHP extension "gd"
It looks like I have to recompile php to include the pear extensions I need but how can I tell what all configure switches were used to compile the original Slackware php package
 
Old 11-10-2010, 05:27 PM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Grab yourself the original Slackbuild script used to build the package. It will be on your installation media in the sources (DVD) or on any mirror that holds your version of Slack, or get one from slackbuilds.org.

Modify the original, adding the extra flags you need, and rebuild.

EDIT: For example, look in here (if you were running -current):
http://ftp.belnet.be/mirror/ftp.slac.../source/n/php/

Last edited by GrapefruiTgirl; 11-10-2010 at 05:31 PM.
 
1 members found this post helpful.
Old 11-10-2010, 07:21 PM   #3
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486

Original Poster
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
Ok, I didn't realize the slack source was made from slackbuild scripts.
So I downloaded php and added the --with-gd at the end of the configure, then it needed alpine so I downloaded it and its compiling now.
 
Old 11-10-2010, 07:35 PM   #4
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486

Original Poster
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
well, another roadblock'

checking for utf8_mime2text signature... new
checking for U8T_DECOMPOSE...
configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.
make: *** No targets specified and no makefile found. Stop.
make: *** No targets specified and no makefile found. Stop.


looks like something to do with imap-ssl which I shouldn't need, trying without.

took out both --with-imap options and got this far

configure: error: libXpm.(a|so) not found.

which says I need libXpm

which needs xorg-macros

I'm not finding either of these on slackware or slackbuilds so I wonder how the original slackbuild worked, or maybe these are not needed without GD which is why GD was not included.
documenting in case anyone else ever tries.

Last edited by enine; 11-10-2010 at 08:44 PM.
 
Old 11-10-2010, 09:10 PM   #5
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 91
Well, first of all, you can simply type:
Code:
php -i | less
on the command line to see all the options php was compiled with.

Second, I use Image_Color here as well and never needed to rebuild my own php...
 
Old 11-10-2010, 09:32 PM   #6
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486

Original Poster
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
How did you get it to install? Mine says that extension is missing and stops.
even the php that came with slack doesn't look right, I started up apache and I get the listing of the php source when I browse to it instead of it actually running it.

Last edited by enine; 11-10-2010 at 09:36 PM.
 
Old 11-11-2010, 03:41 AM   #7
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 91
I needed three extensions and simply typed:
Code:
  # pear install Image_Color-1.0.4
  # pear install Image_Canvas-0.3.2
  # pear install Image_Graph-0.7.2
as simple as that...

Just tried it on a clean Slackware 13.1 system and it works.

Niels
 
Old 11-11-2010, 07:11 AM   #8
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486

Original Poster
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
This is a new install of 13.1

pear install Image_Color-1.0.4
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/gd.so' - libX11.so.6: cannot open shared object file: No such file or directory in Unknown on line 0
pear/Image_Color requires PHP extension "gd"
No valid packages found
install failed

OK, I need to back up a step, I see gd.so but libX11.so.6 is missing. I did an install all of slack so I need to see where to find that.

Last edited by enine; 11-11-2010 at 08:16 AM.
 
Old 11-11-2010, 09:46 AM   #9
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Code:
root@reactor: grep libX11.so /var/log/packages/*
/var/log/packages/libX11-1.3.3-x86_64-1:usr/lib64/libX11.so.6.3.0
root@reactor:
Note I'm not running the exact same Slack version as you, but above, you can see the package that your (apparently) missing thing comes from. With a full install however, you shouldn't be missing this.
 
Old 11-11-2010, 10:43 AM   #10
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 91
@enine: It really looks like your Slackware installation is not complete then...

I did that test a few posts back on a clean box, fresh, full, stock Slackware 13.1 installation.
Run that 'grep' line GrapefruiTgirl posted and tell us the result.
 
Old 11-11-2010, 11:17 AM   #11
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486

Original Poster
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
I don't know what happened, others seem missing as well, guessing maybe I missed a section during the install or something, I reinstalled the whole thing again.
 
Old 11-11-2010, 01:01 PM   #12
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 91
Well, I hope this way it works out fine then
 
Old 11-11-2010, 02:17 PM   #13
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 231Reputation: 231Reputation: 231
Yep GD links with a few packages from X

Refer to http://www.linuxquestions.org/questi...9/#post3367759
 
Old 11-11-2010, 05:28 PM   #14
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486

Original Poster
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
Yes, worked fine after a reinstall, I don't know how I missed those packages the first time.
I still have the same php problem though but its unrelated.
 
Old 11-11-2010, 06:36 PM   #15
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 91
Well, glad it was solved
 
  


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
[SOLVED] install zip extension using pear jonniebigodes Linux - Software 2 10-27-2010 11:41 AM
php pear/pecl zip extension slackamp Slackware 1 06-11-2007 08:55 PM
PHP5 Upgrade Error: Missing Dependency: php = 4.3.x is needed by package php-pear vsystems Linux - Server 1 05-02-2007 07:17 AM
install Pear Net/SMTP, Pear Log and Pear DB modules cccc Debian 0 02-26-2007 08:33 AM
php --without-pear nichu Linux - Software 1 09-20-2006 12:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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