LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-29-2003, 07:59 AM   #1
apax
Member
 
Registered: May 2003
Location: Sweden
Distribution: Gentoo, Slackware 9.1, Slackware 8.1, Mac OS X (if it counts...)
Posts: 71

Rep: Reputation: 15
problems installing php-4.3.1


I'm trying to install php-4.3.1 on slackware 8.1, bt when I do the make command, I get this error message, after some some half minute...:

ext/ctype/ctype.lo: file not recognized: File truncated
collect2: ld returned 1 exit status
make: *** [libphp4.la] Error 1

could someone please help me?
 
Old 05-29-2003, 08:34 AM   #2
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
That's weird. What were your config options? 'cat config.nice' to review them.
 
Old 05-29-2003, 08:57 AM   #3
apax
Member
 
Registered: May 2003
Location: Sweden
Distribution: Gentoo, Slackware 9.1, Slackware 8.1, Mac OS X (if it counts...)
Posts: 71

Original Poster
Rep: Reputation: 15
'./configure' \
'--with-mysql' \
'--with-apxs2=/www/bin/apxs' \
"$@"

that's what said in the install document....
 
Old 05-29-2003, 09:45 AM   #4
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Are you configuring for Apache2 or the Apache that was installed with Slack8.1?
 
Old 05-29-2003, 09:53 AM   #5
apax
Member
 
Registered: May 2003
Location: Sweden
Distribution: Gentoo, Slackware 9.1, Slackware 8.1, Mac OS X (if it counts...)
Posts: 71

Original Poster
Rep: Reputation: 15
I've removed the Apache package that came with slackware, and installed apache2, httpd-2.0.45
 
Old 05-29-2003, 09:54 AM   #6
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
find / -name apxs2
 
Old 05-29-2003, 10:02 AM   #7
apax
Member
 
Registered: May 2003
Location: Sweden
Distribution: Gentoo, Slackware 9.1, Slackware 8.1, Mac OS X (if it counts...)
Posts: 71

Original Poster
Rep: Reputation: 15
as ordinary user the console displays several catalogs... but permission denied...
as root, nothing happends at all...
 
Old 05-29-2003, 11:03 AM   #8
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
OK... How about find /path/to/apache2 -name apxs
 
Old 05-29-2003, 12:21 PM   #9
apax
Member
 
Registered: May 2003
Location: Sweden
Distribution: Gentoo, Slackware 9.1, Slackware 8.1, Mac OS X (if it counts...)
Posts: 71

Original Poster
Rep: Reputation: 15
yupp...

/usr/local/httpd-2.0.45/support/apxs
 
Old 05-29-2003, 07:21 PM   #10
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
ok. put that in your config line --with-apxs2=/usr/local/httpd-2.0.45/support/apxs
 
Old 05-29-2003, 07:46 PM   #11
wldkos
Member
 
Registered: Jan 2003
Distribution: Mandrake 9.2 =<3 and Red Hat 8.0 (server)
Posts: 242

Rep: Reputation: 30
I had this exact same problem with RH, the way i solved it... "APT"

You should get apt, uninstall apache (save httpd.conf) and php, then $] apt-get install php4
$]apt-get apache


There are other ways of using it, and I am not sure I wrote the right thing, but APT will install the newest version of both apache and php right from the console.

I have also noticed that apache from a tarball has a lot missing compared to an rpm.
 
Old 05-29-2003, 10:53 PM   #12
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Quote:
Originally posted by wldkos
I have also noticed that apache from a tarball has a lot missing compared to an rpm.
Although it may appear that way, technically this statement is not quite the case. The apache packages usually include (or package mangers add) a set of mod_'s for apache, as well as being built to suport fun stuff like php and mysql.

While the source on its own doesn't have the bells and whistles, a source build that you nurture yourself not that difficult to patch and maintain. It's a bit of a learning curve but its rewards are worth it.
 
Old 05-30-2003, 06:40 AM   #13
apax
Member
 
Registered: May 2003
Location: Sweden
Distribution: Gentoo, Slackware 9.1, Slackware 8.1, Mac OS X (if it counts...)
Posts: 71

Original Poster
Rep: Reputation: 15
I added --with-apxs2=/usr/local/httpd-2.0.45/support/apxs to my config line, and I get a new nice error message:

Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... no
checking for Apache 1.x module support... no
checking for mod_charset compatibility option... no
checking for Apache 2.0 module support via DSO through APXS...

Sorry, I cannot run apxs. Possible reasons follow:

1. Perl is not installed
2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs
3. Apache was not built using --enable-so (the apxs usage page is displayed)

The output of /usr/local/httpd-2.0.45/support/apxs follows:
./configure: /usr/local/httpd-2.0.45/support/apxs: /usr/bin/perl: bad interpreter: Permission denied
configure: error: Aborting

Perl is installed, i hav configured apache with --enable-so
and the directory to apache is correct
 
Old 05-30-2003, 01:33 PM   #14
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
ahhh.. I belive you need to apprach it like this;

You need to config and NOT make/make install your apache first. Then build php, which will tell apxs to build the required php bits as per your php build.

There's a good HowTO at...
http://www.sgms-centre.com/LAMPS/
 
Old 05-30-2003, 03:50 PM   #15
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
... and once you get that all figured out you can go out and get php-4.3.2 which was released yesterday.
 
  


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
Problems on installing PHP 4.4 in FC4 MAGI Linux - Software 4 09-16-2005 10:20 PM
problems in installing php with mysql krunal Linux - Newbie 3 08-18-2005 09:38 AM
apache problems after installing PHP madBASHer Programming 1 05-20-2005 04:55 PM
Problems installing Apache/PHP from source minorgod Mandriva 0 09-11-2004 08:45 PM
Problems installing Apache 2.0.49, PHP 4.3.6, and GD 2.0.22 Thorin98 Linux - Newbie 1 04-20-2004 03:13 AM


All times are GMT -5. The time now is 04:47 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration