LinuxQuestions.org
Visit Jeremy's Blog.
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 05-25-2006, 02:19 PM   #16
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928

Quote:
Originally Posted by stockton
Can you give me a bit more info please.
I have the Slackware 10.2 CDs here in South Africa and my server is in Texas USofA.
On the Extra CD from the Slackware 10.2 in the n directory I find a php directory containing:-
-rw-r--r-- 1 root root 152 2002-03-03 08:06 doinst.sh.gz
-rw-r--r-- 1 root root 343 2003-11-13 23:43 mod_php.conf.example
drwxr-xr-x 2 root root 2048 2005-08-30 19:11 pear
-rw-r--r-- 1 root root 4086074 2005-07-11 12:07 php-4.4.0.tar.bz2
-rw-r--r-- 1 root root 619 2003-11-16 23:26 php.ini.diff.gz
-rwxr-xr-x 1 root root 4717 2005-09-05 04:53 php.SlackBuild
-rw-r--r-- 1 root root 834 2003-11-16 23:27 slack-desc


My first thought is to pack the whole lot into a bz2 and copy it to my server, which is fine and easy, but now what.
Do I need to unpack the php-4.4.0.tar.bz2 into a suitable directory, make the alterations I need, ie add --with-pgsql=/usr/local/pgsql/ (this is where postgresSQL has been installed to) to the php.SlackBuild and run the php.SlackBuild in the same directory where I unpacked the php-4.4.0.tar.bz2 file?
You want all the files on any slack-box with the same
architecture. You DON'T need to unpack the bz2 file;
all you need to do is modify php.SlackBuild script to
reflect the presence of PostgreSQL.

Then you invoke that build using
sh php.SlackBuild
It will then create a directory in /tmp and also drop
the ready to deploy tgz there.

Cheers,
Tink

P.S.: You'll need to do this as root!
 
Old 05-26-2006, 06:21 AM   #17
stockton
Member
 
Registered: Jan 2006
Location: Midrand, Gauteng, South Africa
Distribution: Raspbian, Mint 13, Slackware 14, Debian & Ubuntu
Posts: 105

Original Poster
Rep: Reputation: 2
For some reason or other the above did not work.
I did all the above as well as installpkg using the new tgz in /tmp but I still get the old version of PHP when I browse to info.php on my server.
Yes I did a apachectl graceful before browsing?
 
Old 05-26-2006, 04:17 PM   #18
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
That's bizarre, to say the least. Can you verify the time-
stamps on the installed php-stuff?


Cheers,
Tink
 
Old 05-27-2006, 07:42 AM   #19
stockton
Member
 
Registered: Jan 2006
Location: Midrand, Gauteng, South Africa
Distribution: Raspbian, Mint 13, Slackware 14, Debian & Ubuntu
Posts: 105

Original Poster
Rep: Reputation: 2
Note the following :-
which php
/usr/local/bin/php
ls -al /usr/local/bin/php
-rwxr-xr-x 1 root root 7876571 2006-05-18 17:10 /usr/local/bin/php*

The abovementioned date should be, as far as I am concerned, 26th May, not 18th May as that is when I built the .tgz.
If I look into the created tgz I see:-
tar -tzvf /tmp/php-4.4.0-i486-4.tgz
drwxr-xr-x root/root 0 2006-05-26 10:38:49 ./
drwxr-xr-x root/root 0 2006-05-26 10:35:05 etc/
drwxr-xr-x root/root 0 2006-05-26 10:38:46 etc/apache/
-rw-r--r-- root/root 38935 2006-05-26 10:35:27 etc/apache/php.ini-dist
-rw-r--r-- root/root 39762 2006-05-26 10:35:27 etc/apache/php.ini-recommended
-rw-r--r-- root/root 343 2003-11-13 23:43:23 etc/apache/mod_php.conf.example
drwxr-xr-x root/root 0 2006-05-26 10:38:45 usr/
drwxr-xr-x root/root 0 2006-05-26 10:38:45 usr/doc/
drwxr-xr-x root/root 0 2006-05-26 10:38:45 usr/doc/php-4.4.0/
-rw-r--r-- root/root 12779 2002-10-29 22:25:09 usr/doc/php-4.4.0/CODING_STANDARDS
-rw-r--r-- root/root 91 2002-04-22 16:45:13 usr/doc/php-4.4.0/CREDITS
-rw-r--r-- root/root 23033 2005-01-07 07:39:15 usr/doc/php-4.4.0/EXTENSIONS
-rw-r--r-- root/root 64265 2005-03-30 15:15:33 usr/doc/php-4.4.0/INSTALL
-rw-r--r-- root/root 3208 2002-07-21 18:17:18 usr/doc/php-4.4.0/LICENSE
-rw-r--r-- root/root 208881 2005-07-11 09:45:08 usr/doc/php-4.4.0/NEWS
-rw-r--r-- root/root 4728 2005-03-22 11:05:48 usr/doc/php-4.4.0/README.CVS-RULES
-rw-r--r-- root/root 1570 2001-10-12 01:32:28 usr/doc/php-4.4.0/README.EXTENSIONS
-rw-r--r-- root/root 6841 2002-10-23 23:31:12 usr/doc/php-4.4.0/README.EXT_SKEL
-rw-r--r-- root/root 3887 2002-10-23 23:32:39 usr/doc/php-4.4.0/README.PARAMETER_PARSING_API
-rw-r--r-- root/root 2112 1999-04-07 23:00:33 usr/doc/php-4.4.0/README.QNX
-rw-r--r-- root/root 4768 2002-10-23 23:35:17 usr/doc/php-4.4.0/README.SELF-CONTAINED-EXTENSIONS
-rw-r--r-- root/root 15130 2002-11-11 20:05:22 usr/doc/php-4.4.0/README.STREAMS
-rw-r--r-- root/root 4557 2003-07-08 11:44:34 usr/doc/php-4.4.0/README.SUBMITTING_PATCH
-rw-r--r-- root/root 11570 2002-10-30 14:18:48 usr/doc/php-4.4.0/README.TESTING
-rw-r--r-- root/root 4261 2002-10-23 23:46:40 usr/doc/php-4.4.0/README.UNIX-BUILD-SYSTEM
-rw-r--r-- root/root 4441 2001-03-19 13:23:56 usr/doc/php-4.4.0/README.Zeus
-rw-r--r-- root/root 6168 2005-01-09 02:18:06 usr/doc/php-4.4.0/TODO
-rw-r--r-- root/root 2701 2005-02-24 00:40:18 usr/doc/php-4.4.0/TODO_SEGFAULTS
-rw-r--r-- root/root 5685 2003-09-03 10:24:17 usr/doc/php-4.4.0/README.FastCGI
drwxr-xr-x root/root 0 2006-05-26 10:38:48 install/
-rw-r--r-- root/root 337 2006-05-26 10:38:48 install/doinst.sh
-rw-r--r-- root/root 834 2006-05-26 10:38:48 install/slack-desc

Note no php. Is this correct?
 
Old 05-27-2006, 04:39 PM   #20
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
OK - so you'll a) need to manually remove the php in /usr/local
and b) run the output of the slackbuild script into a file and
check for errors. There's definitely something gone bad in the
compilation process, and the error checking didn't pick it up.

sh php.SlackBuild 2>&1 | tee build.out


Cheers,
Tink
 
Old 05-28-2006, 03:31 AM   #21
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
OK ... here's an update; it had been a while since I had last done that,
and I had forgotten that one needs to also get the source package for
pine to be able to compile php.

I just re-compiled it with pgsql support and mysql disabled.

[edit]
Something else I forgot - I had to actually also add
/usr/lib/php/extensions
to /etc/ld.so.conf to make the postgres connectivity work :)
[/edit]


Cheers,
Tink

Last edited by Tinkster; 05-28-2006 at 03:35 AM. Reason: [edit]
 
Old 05-28-2006, 07:31 AM   #22
stockton
Member
 
Registered: Jan 2006
Location: Midrand, Gauteng, South Africa
Distribution: Raspbian, Mint 13, Slackware 14, Debian & Ubuntu
Posts: 105

Original Poster
Rep: Reputation: 2
Thank you. I have now included pine and did the sh php.SlackBuild 2>&1 | tee build.out that you suggested and I do not think that you want to see all of build.out but the parts that worry me are:-
While building php after building pine I see:-

checking whether to enable DBA... no
configure: error: DBA: Could not find necessary header file(s).
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target `install'. Stop.
make: *** No rule to make target `distclean'. Stop.
chmod: cannot access `/tmp/package-php/usr/bin/pear': No such file or directory

and

checking whether to enable DBA... no
configure: error: DBA: Could not find necessary header file(s).
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target `install-cli'. Stop.
chmod: cannot access `/tmp/package-php/usr/bin/php': No such file or directory
chown: cannot access `/tmp/package-php/usr/bin/php': No such file or directory
php.SlackBuild: line 150: cd: /tmp/package-php/usr/lib/php: No such file or directory
chown: cannot access `/tmp/package-php/usr/bin': No such file or directory
gzip: /tmp/package-php/usr/man/man?/*.?: No such file or directory

Slackware package maker, version 2.1.

and there is still no php executable:-

./
etc/
etc/apache/
etc/apache/php.ini-dist
etc/apache/php.ini-recommended
etc/apache/mod_php.conf.example
usr/
usr/doc/
usr/doc/php-4.4.0/
usr/doc/php-4.4.0/CODING_STANDARDS
usr/doc/php-4.4.0/CREDITS
usr/doc/php-4.4.0/EXTENSIONS
usr/doc/php-4.4.0/INSTALL
usr/doc/php-4.4.0/LICENSE
usr/doc/php-4.4.0/NEWS
usr/doc/php-4.4.0/README.CVS-RULES
usr/doc/php-4.4.0/README.EXTENSIONS
usr/doc/php-4.4.0/README.EXT_SKEL
usr/doc/php-4.4.0/README.PARAMETER_PARSING_API
usr/doc/php-4.4.0/README.QNX
usr/doc/php-4.4.0/README.SELF-CONTAINED-EXTENSIONS
usr/doc/php-4.4.0/README.STREAMS
usr/doc/php-4.4.0/README.SUBMITTING_PATCH
usr/doc/php-4.4.0/README.TESTING
usr/doc/php-4.4.0/README.UNIX-BUILD-SYSTEM
usr/doc/php-4.4.0/README.Zeus
usr/doc/php-4.4.0/TODO
usr/doc/php-4.4.0/TODO_SEGFAULTS
usr/doc/php-4.4.0/README.FastCGI
install/
install/doinst.sh
install/slack-desc
 
Old 05-28-2006, 02:24 PM   #23
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
I'm starting to guess here, only, but it may be that you don't
have any of the Berkeley DBs installed... if you know you won't
need them you can probably disable them in the configure section
of your php.SlackBuild script, too.


Cheers,
Tink
 
Old 06-03-2006, 05:59 PM   #24
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
And, did you get it resolved in the end? :)


Cheers,
Tink
 
Old 06-16-2006, 07:13 AM   #25
stockton
Member
 
Registered: Jan 2006
Location: Midrand, Gauteng, South Africa
Distribution: Raspbian, Mint 13, Slackware 14, Debian & Ubuntu
Posts: 105

Original Poster
Rep: Reputation: 2
No I did not and I got dragged off onto another project and therefore the lack of response from me, for which I apologize.
 
Old 06-22-2006, 08:17 AM   #26
ivanrolim
LQ Newbie
 
Registered: Mar 2006
Location: Brazil - Rio de Janeiro
Distribution: SUSE 10
Posts: 8

Rep: Reputation: 0
Lightbulb TWO CLUES to compile pgsql! (mainly for SUSE linux 9.3)

I was very surprised on how things can be so simple.
I tried to compile php 5.1.4 (and 5.1.2) on SUSE LINUX 9.3 (10.0 and 10.1 can work now as well) with postgresql support. I worked hard but finally found the culprits.

There GOLDEN steps to follow:
1 - be sure to see whats your php directory. Be aware of installing two phps in the same system (you may erractically execute the wrong php installed, not with pgsql!) I removed all php RPMs first (from YAST) and then used the .tar.gz file which has APXS and other eye-candy possibilities (as well as the option to tune the system, like linux gurus do (-mtune, -cflags...)

2 - You will not use php rpm package. Right. But postgres can be of your SUSE RPms. HOWEVER A PRECIOUS FILE IS NEEDED! postgresql-devel-8.0.1-6.i586.rpm ! SUSE cds does not have it! Well, maybe the DVD has it, but hidden! Its not in 'zzz all' packages list! I had to see /tmp/php5.1.4/config.log, when executing ./configure and make.
The last line said:
configure:75101: checking for pg_config

As it CANT find this file (because of LACK of DEVEL PAckages) it WILL CRASH (make install '-k' error) something like that. And then create tons of headaches for day along because of postgresql-devel! Ive seen so many people, some with good linux background, going to MYSQL because of compile problems like that.

Thats why I always install ALL *-devel, *.libs, *.server, *.client, *.plugins files! It will has 100% of compatibility when compiling things with tar.gz files (not rpm ones) Postgresql now can connect to the database via php execution! No more ' Fatal error: Call to undefined function pg_connect() in database.php on line 79 '

Last edited by ivanrolim; 06-22-2006 at 08:21 AM.
 
Old 06-23-2006, 02:31 AM   #27
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
That was mildly entertaining, but how does it relate to his question? :}


Cheers,
Tink
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Apache with PHP in Slackware 9.0 traveldanimal Slackware 3 09-28-2004 01:41 PM
slackware, apache and PHP from .tgz - problems with PHP szymon Slackware 2 09-06-2004 05:57 PM
Slackware 9.0 / MySQL /PHP/Apache ..? MikeFoo1 Linux - Newbie 2 05-04-2004 12:49 AM
Apache/PHP Help on Slackware wenberg Linux - Software 7 01-03-2004 11:04 PM
php and apache and slackware 9 joel112 Linux - Software 4 07-10-2003 01:44 PM

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

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