LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-11-2004, 02:59 PM   #1
yussef
Member
 
Registered: Sep 2004
Location: St Andrews, United Kingdom
Distribution: Ubuntu Breezy 5.10
Posts: 31

Rep: Reputation: 15
php installing problem


i am trying to install php from the source but each time i get an error when typing the command:
Code:
 ./configure --with-mysql --with-apxs --with-config-file-path=/etc/php
i get this error:
Code:
loading cache ./config.cache
checking host system type... i686-pc-linux-gnulibc1
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
any suggestions?

thanx for your answer
 
Old 09-11-2004, 03:15 PM   #2
serz
Member
 
Registered: Apr 2003
Location: Buenos Aires, Argentina
Distribution: Slackware, Gentoo
Posts: 397

Rep: Reputation: 30
Could you please post the contents of /etc/fstab?
 
Old 09-11-2004, 03:15 PM   #3
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Re: php installing problem

Quote:
Originally posted by yussef
i am trying to install php from the source but each time i get an error when typing the command:
Code:
 ./configure --with-mysql --with-apxs --with-config-file-path=/etc/php
i get this error:
Code:
loading cache ./config.cache
checking host system type... i686-pc-linux-gnulibc1
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
any suggestions?

thanx for your answer
I believe you need the binutils package BTW PHP is already in Debian why compile from source.
 
Old 09-11-2004, 03:26 PM   #4
yussef
Member
 
Registered: Sep 2004
Location: St Andrews, United Kingdom
Distribution: Ubuntu Breezy 5.10
Posts: 31

Original Poster
Rep: Reputation: 15
ok ill post the contents...

Why build from the source?
lol because I wanna learn how to do it and it is apprently good because there is
something i don't understand because it is not working ... i'll also install binutils.
 
Old 09-11-2004, 03:29 PM   #5
yussef
Member
 
Registered: Sep 2004
Location: St Andrews, United Kingdom
Distribution: Ubuntu Breezy 5.10
Posts: 31

Original Poster
Rep: Reputation: 15
ok i tried instaling binutils and as i thought it is already installed.

/etc/fstad:


Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/hdb1       /               ext3    defaults,errors=remount-ro 0       1
/dev/hdb5       /home           ext3    defaults        0       2
/dev/hdb6       none            swap    sw              0       0
/dev/hdc        /media/cdrom0   iso9660 ro,user,noauto  0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0
Can you tell me why i should post this?
 
Old 09-11-2004, 03:47 PM   #6
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally posted by yussef
ok i tried instaling binutils and as i thought it is already installed.

Can you tell me why i should post this?
You shouldn't it has nothing to do with compiling, a quick google search on the error lead me to this page which in addition to confirming my suspicions (seems binutils is needed only for gcc) says you should have glibc-dev and kernel-headers packages to use with ./configure. On Debian these would be linux-kernel-headers and libc6-dev both of which I have installed.

Code:
>$ apt-cache policy libc6-dev
libc6-dev:
  Installed: 2.3.2.ds1-13
  Candidate: 2.3.2.ds1-13
  Version Table:
     2.3.2.ds1-16 0
        600 http://ftp.de.debian.org unstable/main Packages
 *** 2.3.2.ds1-13 0
        990 http://ftp.de.debian.org testing/main Packages
        100 /var/lib/dpkg/status
     2.2.5-9.woody.3 0
        990 http://security.debian.org testing/updates/main Packages

>$ apt-cache policy linux-kernel-headers
linux-kernel-headers:
  Installed: 2.5.999-test7-bk-16
  Candidate: 2.5.999-test7-bk-16
  Version Table:
     2.5.999-test7-bk-17 0
        600 http://ftp.de.debian.org unstable/main Packages
 *** 2.5.999-test7-bk-16 0
        990 http://ftp.de.debian.org testing/main Packages
        100 /var/lib/dpkg/status
BTW take the recommends and most of the suggested when installing these to save problems in the future.
 
Old 09-11-2004, 03:49 PM   #7
yussef
Member
 
Registered: Sep 2004
Location: St Andrews, United Kingdom
Distribution: Ubuntu Breezy 5.10
Posts: 31

Original Poster
Rep: Reputation: 15
thanks a lot happy tux

Once again saving the day
 
Old 09-11-2004, 06:01 PM   #8
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally posted by yussef
thanks a lot happy tux

Once again saving the day
Your welcome it is all part of the master plan world domination one user at a time, we have secret meetings on IRC so don't tell anyone.
 
  


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
New to PHP and Postgressql. Is this a PHP problem or a sql problem. Please help sendas4 Linux - General 2 11-05-2004 01:54 PM
Problem installing PHP with MySQL on RedHat 9 d2army Linux - Newbie 1 07-11-2004 05:58 PM
PHP ED installing problem munna_502 Linux - Software 2 03-31-2004 02:45 PM
Apache php index.php problem neurotic Linux - Software 3 11-18-2003 06:02 PM
Installing PHP help, please. WorldBuilder Linux - Software 3 06-06-2003 01:36 PM

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

All times are GMT -5. The time now is 05:27 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
Open Source Consulting | Domain Registration