How to build PHP lib on DS107+

All discussions/development regarding the Marvell mv5281 Chip can be placed here.
Forum rules
Please note the disclaimer before modifying your Synology Product.

How to build PHP lib on DS107+

Postby bradmoffat » Sat Jan 02, 2010 4:59 pm

Hello,

I apologize in advance for my lack of understanding but please bear with me as I'm a complete noob. I want to compile PHP5.3.1 to support OpenSSL but I have no idea how to do this. I've installed the bootstrap and the optware-devel toolchain but whenever I run ./configure I get the error "./configure: not found". I don't know what's missing. Can anyone point me in the right direction please?

Thanks,

Brad
bradmoffat
Trainee
Trainee
 
Posts: 13
Joined: Sun Nov 30, 2008 11:06 am

Re: How to build PHP lib on DS107+

Postby bradmoffat » Sun Jan 03, 2010 3:51 pm

After some investigation it appears to be the shebang in the configure script that's causing the problem. ie.
#! /bin/sh

Even the following simple script gives the same error:
#! /bin/sh
echo "Hello"

As I said before, I'm a Linux novice so any advice would be appreciated.
bradmoffat
Trainee
Trainee
 
Posts: 13
Joined: Sun Nov 30, 2008 11:06 am

Re: How to build PHP lib on DS107+

Postby bradmoffat » Mon Jan 04, 2010 5:34 pm

Apologies, I now realise what I did wrong - I had unpacked the PHP source files on the PC and didn't realise it was using DOS line feeds. Unpacking on the DS fixed that problem and I can now run configure. The problem I'm having now is the configure script can't find apxs. phpinfo gives me the following results:

'./configure.syno' '--host=armle-unknown-linux' '--target=armle-unknown-linux' '--build=i686-pc-linux' '--with-apxs2=/usr/local/apache/bin/apxs' '--prefix=/usr/syno/php' '--with-config-file-path=/usr/syno/etc' '--with-pgsql=/usr/syno/pgsql' '--with-mysql=/usr/syno/mysql' '--with-mysqli=/usr/syno/mysql/bin/mysql_config' '--with-iconv=/usr/syno/libiconv' '--enable-mbstring' '--with-gd' '--enable-gd-native-ttf' '--with-zlib-dir=/usr/local/arm-marvell-linux-gnu' '--with-png-dir=/usr/local/arm-marvell-linux-gnu' '--with-jpeg-dir=/usr/local/arm-marvell-linux-gnu' '--enable-exif' '--with-imap=../imap-2007e' '--enable-calendar' '--enable-ftp' '--enable-sockets' '--with-libexpat-dir=/usr/syno' '--enable-dom' '--with-libxml-dir=/source/libxml2-2.6.32' '--enable-simplexml' '--enable-libxml' '--enable-xmlreader' '--enable-xmlwriter' '--disable-ipv6' '--disable-pdo' '--without-pdo-sqlite' '--without-sqlite' '--with-curl=/usr/syno' '--disable-cgi' '--enable-bcmath' '--with-gettext'

And right enough /usr/local/apache/bin/apxs does not exist. I suspect this is because the diskstation has a minimum Apache installation and apxs ships with the server distribution. All of this is guesswork on my part, though, and I really don't want to trash my web server. Can anyone point me in the right direction with this? Do I need to replace Apache before I can proceed with this?

I also realise this post is probably in the wrong forum and should probably be in the Apache forum.

Thanks,

Brad
bradmoffat
Trainee
Trainee
 
Posts: 13
Joined: Sun Nov 30, 2008 11:06 am


Return to Marvell mv5281 Development Room

Who is online

Users browsing this forum: No registered users and 1 guest