Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
05-25-2006, 02:19 PM
|
#16
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
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!
|
|
|
05-26-2006, 06:21 AM
|
#17
|
Member
Registered: Jan 2006
Location: Midrand, Gauteng, South Africa
Distribution: Raspbian, Mint 13, Slackware 14, Debian & Ubuntu
Posts: 105
Original Poster
Rep:
|
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?
|
|
|
05-26-2006, 04:17 PM
|
#18
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
That's bizarre, to say the least. Can you verify the time-
stamps on the installed php-stuff?
Cheers,
Tink
|
|
|
05-27-2006, 07:42 AM
|
#19
|
Member
Registered: Jan 2006
Location: Midrand, Gauteng, South Africa
Distribution: Raspbian, Mint 13, Slackware 14, Debian & Ubuntu
Posts: 105
Original Poster
Rep:
|
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?
|
|
|
05-27-2006, 04:39 PM
|
#20
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
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
|
|
|
05-28-2006, 03:31 AM
|
#21
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
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]
|
|
|
05-28-2006, 07:31 AM
|
#22
|
Member
Registered: Jan 2006
Location: Midrand, Gauteng, South Africa
Distribution: Raspbian, Mint 13, Slackware 14, Debian & Ubuntu
Posts: 105
Original Poster
Rep:
|
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
|
|
|
05-28-2006, 02:24 PM
|
#23
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
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
|
|
|
06-03-2006, 05:59 PM
|
#24
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
And, did you get it resolved in the end? :)
Cheers,
Tink
|
|
|
06-16-2006, 07:13 AM
|
#25
|
Member
Registered: Jan 2006
Location: Midrand, Gauteng, South Africa
Distribution: Raspbian, Mint 13, Slackware 14, Debian & Ubuntu
Posts: 105
Original Poster
Rep:
|
No I did not and I got dragged off onto another project and therefore the lack of response from me, for which I apologize.
|
|
|
06-22-2006, 08:17 AM
|
#26
|
LQ Newbie
Registered: Mar 2006
Location: Brazil - Rio de Janeiro
Distribution: SUSE 10
Posts: 8
Rep:
|
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.
|
|
|
06-23-2006, 02:31 AM
|
#27
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
That was mildly entertaining, but how does it relate to his question? :}
Cheers,
Tink
|
|
|
All times are GMT -5. The time now is 02:54 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|