|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Trying to install gcc on Solaris 8 box to compile PHP ????
Ok here is my problem I'm trying to install gcc 2.95.3 compiler (I need to try and compile PHP for Solaris 8 (SPARC))....however when I run the installation using the following command:
pkgadd -d gcc-2.95.3-sol8-sparc-local I get the following: Code:
The following packages are available:
1 SMCgcc gcc
(sparc) 2.95.3
Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]: all
Processing package instance <SMCgcc> from </usr/local/gcc-2.95.3-sol8-sparc-local>
gcc
(sparc) 2.95.3
Free Software Foundation
Using </usr/local> as the package base directory.
## Processing package information.
## Processing system information.
6 package pathnames are already properly installed.
## Verifying disk space requirements.
WARNING:
The /usr filesystem has 1510 free blocks. The current installation requires 120245 blocks, which includes a required 150 block buffer for open deleted files. 118735 more blocks are needed.
Do you want to continue with the installation of <SMCgcc> [y,n,?]
What I'm concerned with (well for now atleast) is the line that says: Code:
6 package pathnames are already properly installed. Lets say that I have enough space is ok for me to continue with the installation ? And If I did what exactly happens to the 6 packages that are already installed ? Keeping in mind that this Sun box runs other "stuff". How will it affect thoze "stuff" ? Is it safe to continue with the installation ? How do I wok around this and get the compiler on the box ? If I can't get the compiler on the box is there a PHP binary available for this sun box ? (One isn't available at the PHP site or the Sun site ) This is what I'm running : SunOS 5.8 Generic_108528-19 sun4u sparc SUNW,Ultra-80 |
|
#2
|
|||
|
|||
|
It says 6 package pathnames are already installed. That is not the same as 6 packages. An example of a pathname is /usr/local or /usr/local/bin. If they already exist, that's fine. Yes it is safe to attempt the install if you have solved the space problem.
And the usual solution to the space problem is to find another filesystem with a lot of space, move /usr/local there, and symlink or loopback mount it back. |
|
#3
|
|||
|
|||
|
Hi Perderabo,
I've often symlinked to get more space, but it always seemed like a quick and very dirty way to to it. What do you meen with the loopback mount? -Steven |
|
#4
|
|||
|
|||
|
OK, let me go over the whole procedure in case someone else doesn't understand this stuff. Let's say that I need to move /usr/local out of /usr and that I have plenty of space in /bigboy. I would be running a ksh as root for this work. First I copy the stuff over and I like to use tar for this:
mkdir /bigboy/usr.local cd /usr/local tar cf - . | ( cd /bigboy/usr.local && tar xf - ) At this point, I check out /bigboy/usr.local to be sure that it looks ok. I'll also mention I have backups that I trust. So now I can: cd /usr rm -rf local Now to symlink it back: ln -s /bigboy/usr.local /usr/local Symlinks are cool, but they do have problems. For example, if I do: cd /usr/local /usr/bin/pwd I will see "/bigboy/usr.local". Loopback mounts were invented to solve the problems with symlinks. As with any mounted filesystem, we want it to survive a reboot. So we must add a line to /etc/vfstab: /bigboy/usr.local - /usr/local lofs - yes - Then we do: rm /usr/local mkdir /usr/local mount /usr/local At this point, /usr/local looks just like a mounted filesystem. Because it is. There is a man page on this. See "man lofs" |
|
#5
|
||||
|
||||
|
Wouldn't you just be better off using the Solaris compiler? It'll probably generate tighter code, as it was built with that particular chip/OS in mind.
|
|
#6
|
|||
|
|||
|
Quote:
At the higher optimization levels, yes it does beat gcc. However it costs money while gcc is free. That's a deciding factor for a lot of people. |
|
#7
|
|||
|
|||
|
Thanx everybody for your replys....
|
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > Trying to install gcc on Solaris 8 box to compile PHP ???? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|