Help!!! My boss is breathing down my neck (>_<)

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Gambit
Forum Newbie
Posts: 3
Joined: Thu Sep 30, 2004 11:58 pm

Help!!! My boss is breathing down my neck (>_<)

Post by Gambit »

Hello everyone.

first off I'm totally new to this PHP thing, and second
I dont know didly squat about Solaris. But my boss
wants me to install PHP into Solaris8

What would be best, is if there is a binary installation
for PHP in which I would have to do no compiling.
In other words the easiest way to install PHP into Solaris8 (sparc)

Hoping for a reply
User avatar
vigge89
Forum Regular
Posts: 875
Joined: Wed Jul 30, 2003 3:29 am
Location: Sweden

Post by vigge89 »

PHP and Apache 2?
Steveo31
Forum Contributor
Posts: 416
Joined: Sun Nov 23, 2003 9:05 pm
Location: San Jose CA

Post by Steveo31 »

Gambit
Forum Newbie
Posts: 3
Joined: Thu Sep 30, 2004 11:58 pm

Post by Gambit »

Thank you all for the replys. I was so uptight that
I forgot to fill you in on the details. Sorry

When I looked all over the net, I found some pretty
simple instructions, like the one below:

1, Download the php file from the folllowing site;

http://www.php.net/

2,Then do the following

% tar -xvzf php-4.0.6.tar.gz
% ./configure --enable-mbstring --enable-mbstr-enc-trans --with-pgsql=/usr/local/pgsql --with-apxs=/usr/local/apache/bin/apxs --without-mysql --with-imap
% make
% su
# make install
# cp php.ini-dist /usr/local/lib/php.ini


When I downloaded the file from the URL above, instead of
getting a [tar.gz] file I got the following:

php-5.0.2.tar.tar

Due to my lack of knowledge, I tried to gunzip it, but it didnt work (duh!)

Then comes the hard part, the stuff that comes after [./configure], is just
insane!

What should I do?? All the UNIX gurus in my office are too busy to bother
with me....


waiting for reply
AGISB
Forum Contributor
Posts: 422
Joined: Fri Jul 09, 2004 1:23 am

Post by AGISB »

Rename the tar.tar file to tar.gz and try again. This happens if windows adds extensions when downloading files.
redmonkey
Forum Regular
Posts: 836
Joined: Thu Dec 18, 2003 3:58 pm

Post by redmonkey »

Unix doesn't care about file extensions so the actual name of the file is irrelevant.

You need to gunzip the file first to extract the tar file then use tar to extract the contents of that.

You will also require that your machine has basic build tools installed e.g.....

gcc
make
flex
bison
automake
autoconf

And probably a few others.....(can't quite remember the exact requiremnts).

So probably..

Code: Select all

gunzip  php-5.0.2.tar.tar
tar -xvf  php-5.0.2.tar
...should at least extract the contents of the downloaded file.
Gambit
Forum Newbie
Posts: 3
Joined: Thu Sep 30, 2004 11:58 pm

Thank you everyone!! You've made my Monday a little better.

Post by Gambit »

Thank you everyone for your replies!!!

Its just been such a rough week for me. (I cant get this work done, and
my girlfriend just broke up with me yesterday, which makes it really
difficult to work today).

Its just so much of a relief to find a reply on my question . (^_^)y

Thanks Everyone.

Well I did that changing from ".tar.tar" to "tar.gz", that worked well,
but when I did

bash-2.03$ tar -xvzf php-5.0.2.tar.gz

I got a messeage like this:

tar: z: unknown option (the message was in Japanese)

usage:tar {txruc}[vfbFXhiBEelmopwnq[0-7]] [-k size] [tapefile] [blocksize] [exclude-file] [-I include-file] files ...

Even though it was an error, I went on....., and typed "make," which came up with this:

make: not found

I did "find" command, and sure enough it was there.

Do I need to do some kind of link thing to make this work??


Hoping for a reply.
User avatar
AVATAr
Forum Regular
Posts: 524
Joined: Tue Jul 16, 2002 4:19 pm
Location: Uruguay -- Montevideo
Contact:

Post by AVATAr »

Modified
redmonkey wrote:

Code: Select all

gunzip  php-5.0.2.tar.gz 
tar -xvf  php-5.0.2.tar
...should at least extract the contents of the downloaded file.
After you decompress with gunzip and you un-extract with tar -xvf you can do the make thing.
Post Reply