The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > HP-UX
Google UNIX.COM


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
swinstall issues csaunders HP-UX 3 02-08-2008 02:58 AM
swinstall malcqv HP-UX 2 11-16-2006 12:30 AM
swinstall error SemiOfCol HP-UX 2 08-02-2005 09:48 AM
swinstall and autoreboot schilukuri HP-UX 6 05-02-2005 10:33 AM
Help with swinstall HP patches natter HP-UX 4 04-14-2005 09:37 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 02-02-2005
Registered User
 

Join Date: Dec 2004
Location: Zürich
Posts: 146
help with swinstall

I'm trying to install gcc from hp with swinstall but what happens is the following:

I change source to the correct depot, it complains it can't find anything, when I change target to /usr/local, it shows the depot in the list. Next, I mark it for install, install it, but then it gets installed in /usr/local/usr/local

So I changed the location, by default it is /usr/local, but I can't remove that because when I use a different location it still installs under /usr/local/something/else.

It doesn't want to use / as target though. Apperently I'm missing something but I don't know what.
Reply With Quote
Forum Sponsor
  #2  
Old 02-02-2005
Registered User
 

Join Date: Dec 2004
Location: Zürich
Posts: 146
Ps

I use HP-UX 11vi 64bit PA-RISC 2.0 and depot's from the hp site
Reply With Quote
  #3  
Old 02-02-2005
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,616
You can't do that. swinstall must install stuff in the intended directory. The idea of a target is so you can remote mount the entire filesystem of another host and install using, say, /remote/anotherbox/root/ as a target. Then when sign on to anotherbox, gcc would still be in /usr/local/. You need to let swinstall install gcc in /usr/local. You can first make /usr/local a symbolic link or a loopback mount to another place, but these must be permanent. gcc needs to know where it will reside at build time and will try to find stuff in /usr/local. After the install, you can symlink it elsewhere if you really must.

To install gcc elsewhere, you will need to download the gcc source code and install it yourself. This won't work with /usr/bin/cc which is an old pre-ansi K&R C compiler. You will need to obtain HP's Ansi-C compiler.
Reply With Quote
  #4  
Old 02-02-2005
Registered User
 

Join Date: Dec 2004
Location: Zürich
Posts: 146
okay, thanks. I got gcc to work but I don't think it is working very well. I needed it to compile apache & tomcat but I get the following error:

configure: WARNING: pthread.h: present but cannot be compiled

same with a few other files. I tried gcc on another source program and that worked but maybe gcc and hp don't really like each other.
Reply With Quote
  #5  
Old 02-02-2005
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,616
gcc works fine for us on HP-UX.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 03:00 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0