LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 12-13-2005, 12:10 AM   #1
tisource
Member
 
Registered: Feb 2002
Posts: 322

Rep: Reputation: 30
Compiling PHP5 on Intel EMT64 / SLES 9


I am running SuSE Enterprise 9, and would like to upgrade my php to version 5; however, Novell only officially supports version 4 at this time (there are no Novell-made PHP5 binaries). So, I decided to compile it from source. Unfortunately, the configure script fails.

Before I go into detail as to how the configure script fails, I would like to know if people have, in fact, compiled PHP5 for the EMT64 architecture, and if so, how they went about doing it.
 
Old 12-30-2005, 05:13 PM   #2
RPaulW
LQ Newbie
 
Registered: Sep 2003
Location: New York
Distribution: Slackware 10, SuSE SLES 9
Posts: 2

Rep: Reputation: 0
I've used the following to configure. I did have an rpm install working great from ftp.suse.com, but the rpms seemed to have vanished from their site, and as I needed to add some features, I decided to manually install anyway.

At the moment, I am not configuring GD, due to unrelated issues for me, but php5.0.3 is working fine. I did try a quick ./configure with this same setup for 5.1.1, and it is failing on an out of date libxml something.

This may help get you started, and if interested, I still have the original rpm set from my March 2005 install, which worked fine on my original sles9 install.

./configure --prefix=/usr \
--datadir=/usr/share/php5 \
--mandir=/usr/share/man \
--bindir=/usr/bin \
--libdir=/usr/lib64 \
--includedir=/usr/include \
--with-_lib=lib64 \
--sysconfdir=/etc/php5/apache2 \
--with-config-file-path=/etc/php5/apache2 \
--with-config-file-scan-dir=/etc/php5/conf.d \
--with-exec-dir=/usr/lib64/php5/bin \
--enable-bcmath=shared \
--enable-calendar=shared \
--enable-ctype=shared \
--enable-dba=shared \
--enable-dbase=shared \
--enable-dbx=shared \
--enable-dio=shared \
--enable-dom=shared \
--enable-exif=shared \
--enable-filepro=shared \
--enable-ftp=shared \
--enable-gd-native-ttf=shared \
--enable-gd-jis-conv=shared \
--enable-mbstring=shared \
--enable-mbregex \
--enable-pcntl=shared \
--enable-posix=shared \
--enable-shmop=shared \
--enable-ucd-snmp-hack=shared \
--enable-soap=shared \
--enable-sockets=shared \
--enable-sqlite-utf8 \
--enable-sysvmsg=shared \
--enable-sysvsem=shared \
--enable-sysvshm=shared \
--enable-tokenizer=shared \
--enable-wddx=shared \
--enable-yp=shared \
--enable-magic-quotes \
--enable-libxml \
--enable-session \
--with-pcre-regex \
--enable-xml \
--enable-simplexml \
--enable-spl \
--enable-safe-mode \
--enable-sigchild \
--disable-debug \
--enable-memory-limit \
--enable-inline-optimization \
--with-apxs2=/usr/sbin/apxs2 \
--with-zlib=shared \
--with-bz2=shared \
--with-gdbm=shared \
--with-db4=shared \
--with-cdb=shared \
--with-freetype-dir=yes \
--with-inifile=shared \
--with-flatfile=shared \
--with-gettext=shared \
--with-gmp=shared \
--with-iconv=shared \
--with-ncurses=shared \
--with-pear \
--with-ttf \
--with-readline=shared \
--with-mm=shared \
--with-xmlrpc=shared \
--with-xsl=shared \
--with-pgsql=/usr
 
Old 12-30-2005, 07:50 PM   #3
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
You should stick with 32-bit programs instead of 64-bit programs because EMT64 is just a feature in Intel processors to convert 64-bit programs into 32-bit programs. The speed will be much faster if it is compiled for 32-bit for Pentium 4 processors instead of 64-bit. If you want 64-bit x86 processors, Opterons or Athlon64 are the only processors.

To compile, make sure all glibc and other programs that php depends on like their header files are installed. To compile any program you run ./configure && make && make install. You may need to run make depend before running make.
 
Old 01-02-2006, 11:40 AM   #4
tisource
Member
 
Registered: Feb 2002
Posts: 322

Original Poster
Rep: Reputation: 30
I currently have two sites in place; one is a production site, and I'm thinking it's dependent on php 4.x. The other is in beta, and is a replacement of the other. It uses a lot of object-oriented code, and would greatly benefit from php 5.x.

If I upgrade my php, will it break my old site? I'm not really familiar with the changes from 4 to 5. If there are a few function name changes, I can deal with that... but if there are major behavioral changes, then I'll have to wait until the new site replaces the old one.

Concerning EMT64... This machine flies... I've really been impressed with its performance, based upon the cost (which was pretty affordable). However, as I have learned more about EMT64, I wished we'd have gone with an AMD solution. The next 64-bit OS we get will definitely have an AMD in it, though.
 
  


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
problem about compiling anjuta 2.0.1 in SLES 9 hongxing SUSE / openSUSE 7 10-19-2005 08:19 AM
Compiling PHP5 Terroth Linux - Newbie 2 06-27-2005 01:35 PM
PHP5 compiling problems Ephracis Linux - Software 10 02-10-2005 01:45 PM
Compiling PHP5 on FC2 imemyself Linux - Software 0 10-09-2004 06:20 PM
Error compiling PHP5 with MySQL Boby Linux - Software 3 09-10-2004 09:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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