UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Dell PowerEdge Servers
  #1  
Old July 14th, 2004, 02:08 PM
bluwulf bluwulf is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 105 bluwulf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 33 m 28 sec
Reputation Power: 4
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

Reply With Quote
  #2  
Old July 22nd, 2004, 06:25 PM
Perderabo Perderabo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 121 Perderabo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 m 54 sec
Reputation Power: 5
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.

Reply With Quote
  #3  
Old July 22nd, 2004, 07:08 PM
stevengs stevengs is offline
Permanently Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Location: Germany
Posts: 394 stevengs User rank is Lance Corporal (50 - 100 Reputation Level)stevengs User rank is Lance Corporal (50 - 100 Reputation Level)stevengs User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 3 Days 4 h 36 m 24 sec
Warnings Level: 10
Number of bans: 1
Reputation Power: 0
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

Reply With Quote
  #4  
Old July 22nd, 2004, 08:01 PM
Perderabo Perderabo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 121 Perderabo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 m 54 sec
Reputation Power: 5
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"

Reply With Quote
  #5  
Old July 22nd, 2004, 10:57 PM
obi_wonton's Avatar
obi_wonton obi_wonton is offline
(not) Banned
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2004
Location: Toronto, CANADA
Posts: 598 obi_wonton User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 h 4 m 13 sec
Reputation Power: 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.

Reply With Quote
  #6  
Old July 23rd, 2004, 06:25 AM
Perderabo Perderabo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 121 Perderabo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 m 54 sec
Reputation Power: 5
Quote:
Originally Posted by obi_wonton
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.


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.

Reply With Quote
  #7  
Old August 23rd, 2004, 04:48 PM
bluwulf bluwulf is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 105 bluwulf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 33 m 28 sec
Reputation Power: 4
Thanx everybody for your replys....

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > Trying to install gcc on Solaris 8 box to compile PHP ????


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway