LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-14-2004, 02:50 PM   #1
ziphem
Member
 
Registered: Feb 2004
Location: US / EU
Distribution: Fedora 31
Posts: 225

Rep: Reputation: 29
./configure, make, make clean, etc.


Hi, I just started exploring my inner linux Seriously, I have this VDS and I am running Plesk I think it's 6.0. One of my sites uses PHP to parse XML on the server side. I need to install Sablotron and a few others that aren't currently active in the PHP settings that I have on the webserver. I can't for the life of me figure out how to reconfigure PHP to include the options.

I've tried make clean, but I just get the message *** No rule to make target clean. Stop. I've read somewhere about using a 'fake' make file, like make -f something or other, but it's way past me!!!

I've also tried to just ./configure whatever but of course that doesn't work either.

I'd appreciate it SO much if someone could help me out as soon as they get the chance! I'm migrating from one server to another, so add up the daily costs of having two VDServers and...ouch!!

I'm working towards having:

'./configure' '--host=i686-pc-linux-gnu' '--build=i686-pc-linux-gnu' '--target=i386-redhat-linux' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--enable-force-cgi-redirect' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-db3' '--with-curl' '--with-dom=/usr' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd' '--enable-gd-native-ttf' '--with-ttf' '--with-gdbm' '--with-gettext' '--with-ncurses' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-regex=system' '--with-xml' '--with-expat-dir=/usr' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-discard-path' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--without-oci8' '--with-pear=/usr/share/pear' '--with-imap=shared' '--with-imap-ssl' '--with-kerberos=/usr/kerberos' '--with-ldap=shared' '--with-mysql=shared,/usr' '--with-pgsql=shared' '--with-snmp=shared,/usr' '--with-snmp=shared' '--enable-ucd-snmp-hack' '--with-unixODBC=shared' '--enable-memory-limit' '--enable-bcmath' '--enable-shmop' '--enable-versioning' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mcal' '--with-apxs2=/usr/sbin/apxs' '--enable-xslt' '--with-xslt-sablot'

Thanks very much!!!!
 
Old 02-14-2004, 06:49 PM   #2
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
thats a long configure list, most of that stuff the scripts should detect by itself, now to the make clean thingy, if that dont work then all you ahve to do is delet the sources and untar a new treee, good as new, run the configure script you have up there (note: i dont think you need all the ' everyhwere),
 
Old 02-16-2004, 03:34 PM   #3
ziphem
Member
 
Registered: Feb 2004
Location: US / EU
Distribution: Fedora 31
Posts: 225

Original Poster
Rep: Reputation: 29
I'm really struggling. I don't know where to start with this. I can't even get the ./configure command to work. I have NO idea how to do this. Do you think you could give me some basic instructions on what I need to do? Such as - how do I find the right php tree?
Thanks.
 
Old 02-16-2004, 05:58 PM   #4
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
If your configure script fails it's very hard to provide any useful thoughts without the output configure script. Please post it and we'll try to help.

As for the "right" PHP tree....well the latest release should be OK, shouldn't it? Or is there any reason you want to use an older one?


Håkan
 
Old 02-17-2004, 12:11 AM   #5
ziphem
Member
 
Registered: Feb 2004
Location: US / EU
Distribution: Fedora 31
Posts: 225

Original Poster
Rep: Reputation: 29
Hey thanks a lot for a fast answer, I really appreciate it. I type in ./configure, and I get 'no such file or directory'. I thought maybe I'm in the wrong directory, but I've tried it in almost all the relevent directories and I get the same response.

I look at my http://www.noctambus.com/phpinfo.php , and so it must be installed in some way or another, right? From what I have read, I've made the conclusion that this PHP is bundled with this Apache version. But, I can also get it stand alone. Is that right or totally off the mark? If it is right, and I install it stand alone, then how wil the system know which PHP it should use? If this is completely wrong, then totally ignore my ramblings!

Basically, all I'm looking to do to is recompile the PHP to get those options in there. I doubt I'll be fooling with it once I get that part enabled. So, it doesn't really matter to me how it's installed, etc. etc.

Thanks again for the help! This is soooo frustrating!!
 
Old 02-17-2004, 05:40 AM   #6
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
Well you seem to be in the wrong directory then.
Download the file, say to your ~/downloads directory. If you want to build it in ~/build, simply cd over to ~/build and unpack the source: tar xfvj ~/downloads/php-4.3.4.tar.bz2

This will create the directory php-4.3.4 in the current directory, so the location should be ~/build/php-4.3.4. cd to that directory and you will find the configure script waiting for you.


Håkan
 
Old 02-17-2004, 11:03 AM   #7
ziphem
Member
 
Registered: Feb 2004
Location: US / EU
Distribution: Fedora 31
Posts: 225

Original Poster
Rep: Reputation: 29
Ok. Is it possible it's already installed as an embedded part of Apache? If so, is it a problem if I download and install it as standalone? How would I make sure that programs are using the standalone downloaded PHP as the one that came with the Apache? Because, like I said, I see the results from http://www.noctambus.com/phpinfo.php
Thanks!!
 
Old 02-17-2004, 07:35 PM   #8
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
You need to edit your php.ini and httpd.conf files (for PHP and Apache, respectively) to make sure the correct PHP installation is used, and with the settings of your choice.

Apache doesn't come with PHP support built in. You'll need to install that separately, like you're trying to do now.

Since you're using Redhat with that distribution's version of Apache and PHP, getting rpm's would perhaps be a simpler way.


Håkan

Last edited by hw-tph; 02-17-2004 at 07:37 PM.
 
Old 02-17-2004, 11:58 PM   #9
ziphem
Member
 
Registered: Feb 2004
Location: US / EU
Distribution: Fedora 31
Posts: 225

Original Poster
Rep: Reputation: 29
Hey! Thanks for the info! Ok, I'm learning quite a bit here from this trial and error (I had no idead before today what RPMs were). Ok, I know I have PHP installed as RPMs.

Specifically

php-imap-4.2.2-17.2.2.swsoft
php-mysql-4.2.2-17.2.2.swsoft
php-4.2.2-17.2.2.swsoft
php-snmp-4.2.2-17.2.2.swsoft
php-ldap-4.2.2-17.2.2.swsoft
php-pgsql-4.2.2-17.2.2.swsoft
php-odbc-4.2.2-17.2.2.swsoft
php-devel-4.2.2-17.2.2.swsoft
php-manual-4.2.2-17.2.2.swsoft

Now I have those RPMs installed it seems. So if I want to add in --enable-xslt --with-xslt-sablot what exactly do I need to do now to configure this? Do I just need to edit the php.ini and httpd.conf, or are there other steps involved?

Thanks a lot for helping me with my baby steps..!
 
Old 02-18-2004, 09:24 AM   #10
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
RPMs are binary packages (unless it's a source RPM - SRPM) - they provide ready-to-use programs so you don't have to compile them yourself. This means that when you use a piece of software installed as an RPM, the options the RPM was created with are the options you have. If you want different options you need to either build the software from source (so you can define --with-blahblah) or get RPM packages configured with those specific options that you want. I do not use any RPM based distributions so I'm not really up to the task of telling you where to get updated packages, but freshrpms.net and rpmfind.net is a good start.

If you have a co-located server (VDS? I'm not sure what that means - virtual domain server?) you should be able to get support from the hosting company. If you haven't got root (administrator privileges) on the server you will not be able to install new PHP packages from source or as RPMs, only the root user can do that.


Håkan
 
Old 02-19-2004, 11:07 PM   #11
ziphem
Member
 
Registered: Feb 2004
Location: US / EU
Distribution: Fedora 31
Posts: 225

Original Poster
Rep: Reputation: 29
Hi! Yeah, it's a Virtual Dedicated Server, so I have root access.

I tried installing the php module as the standalone file, but I was told I had no cc gcc etc. So, I downloaded a bunch of the RPMs. I ran some, and was told I needed a whole bunch more...
binutils
cpp
glibc
glibc-devel

etc etc.

I finally got all of them, and when I started to install the last requested on, I got an error message - saying it was already installed. Why didn't the other RPMs pick them up?

Thanks!!!
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
what is the difference between make distclean and make clean? alice95089 Linux - Software 3 08-28-2008 01:22 AM
Look the output of: make dep && make clean bzImage modules modules_install Hell-Shooter Linux - General 2 06-05-2004 05:05 AM
Use of 'make mrproper' and 'make clean'.... fenice1976 Linux - Software 6 05-25-2004 05:18 PM
make clean, make dep problem carscht Linux - Newbie 2 02-21-2004 10:32 AM
make dep,make clean,make bzImage problem Babba Linux - Newbie 2 01-08-2003 03:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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