LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 12-15-2002, 03:13 PM   #1
duck
LQ Newbie
 
Registered: Mar 2002
Location: Sunny Suffolk
Posts: 22

Rep: Reputation: 15
installing packages ?


Hi, I have just installed solaris 8 for intel as a test to see what it is like, it seems to be running ok and I have got it to connect to a network, what I want to do next is to try and install some software, If I download a precompiled software package how do I install it ?? also if I download some source code do I need to get a C compiler first so that I a can compile it or does Solaris 8 come with it's own compiler ?? (if I need to get a C compiler what is the best one to get ? and how do I get it to work ?)

Sorry lots of questions but it's a tough learning curve after years of Wind*ws.

Cheers
 
Old 12-15-2002, 03:42 PM   #2
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
The primary package commands are pkgadd, pkgrm, and pkginfo. If you wish to compile software, your best bet is to install gcc.
 
Old 12-16-2002, 08:38 AM   #3
duck
LQ Newbie
 
Registered: Mar 2002
Location: Sunny Suffolk
Posts: 22

Original Poster
Rep: Reputation: 15
I have downloaded gcc and installed the package, I seem to be stuck changing the PATH to point to were the gcc is installed to, I have tried different combinations of the following:

PATH=/usr/local/bin:$PATH export PATH

If I then do:
echo $PATH
/usr/local/bin is at the start of the path, if I close the console and open another and type echo $PATH /usr/local/bin has disappeared.

were am I going wrong ??

Thanks.
 
Old 12-16-2002, 09:51 AM   #4
duck
LQ Newbie
 
Registered: Mar 2002
Location: Sunny Suffolk
Posts: 22

Original Poster
Rep: Reputation: 15
I think I have worked it out, I added PATH=$PATH:/usr/local/bin to the /etc/profile file.
Hurray slowly starting to get the hang of it
 
Old 12-16-2002, 03:46 PM   #5
duck
LQ Newbie
 
Registered: Mar 2002
Location: Sunny Suffolk
Posts: 22

Original Poster
Rep: Reputation: 15
Stuck again

When compiling source code using 'make' it says unrecognised command ?
I first moved to the relavent folder and ran ./configure
that appeared to worked ok.
next I typed make which did not work
I am following the instructions that came with the source code and looking at other web sites this seems to be the correct way of doing it, were am I going wrong ??

I have got gcc installed (maybe this is not correctly installed)

It is just a simple text editer (nano) that I am trying to compile and install, I choose this as I thought it would be a good practice piece.

Any ideas ?
 
Old 12-16-2002, 03:59 PM   #6
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
You probably need to use gmake instead of make.
 
Old 12-18-2002, 10:27 AM   #7
duck
LQ Newbie
 
Registered: Mar 2002
Location: Sunny Suffolk
Posts: 22

Original Poster
Rep: Reputation: 15
I have tried gmake and make and neither work.
when doing:
./configure
I get a couple of suspicious lines at the top of the information that is generated:
checking for working aclocal...missing
checking for working autconf...missing
checking for working autoheader...missing
checking for working makeinfo...missing

Is this something to do with the problem with 'make' ??
As I have never compiled before I am not sure if these messages point to a problem.

Thanks
 
Old 12-18-2002, 12:51 PM   #8
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
In most cases, these warnings do not cause any problems. Where does your make/gmake quit?
 
Old 12-18-2002, 01:08 PM   #9
duck
LQ Newbie
 
Registered: Mar 2002
Location: Sunny Suffolk
Posts: 22

Original Poster
Rep: Reputation: 15
When I try to use 'make' or 'gmake' it says:

make: not found

I have added the /usr/local/bin to the path, is that the correct location of 'make' ?

Cheers
 
Old 12-19-2002, 08:38 AM   #10
duck
LQ Newbie
 
Registered: Mar 2002
Location: Sunny Suffolk
Posts: 22

Original Poster
Rep: Reputation: 15
Hurray I have managed to compile and install

'make' was in /usr/ccs/bin

I just added that to the path and bingo it worked.
 
Old 12-19-2002, 08:53 AM   #11
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
You really should have used gmake in /usr/local/bin. At time the cc and make in /usr/ccs/bin cause problems when compiling some apps.
 
Old 12-19-2002, 04:09 PM   #12
duck
LQ Newbie
 
Registered: Mar 2002
Location: Sunny Suffolk
Posts: 22

Original Poster
Rep: Reputation: 15
gmake was not in /usr/local/bin. I will look to see were it is located, maybe the gcc install did not work correctly and so I cannot use gmake ?
 
Old 12-19-2002, 04:20 PM   #13
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Sorry. I forgot to mention to get the GNU make utilities along with GCC. I always get both of them out of habit.
 
Old 12-23-2002, 09:58 AM   #14
duck
LQ Newbie
 
Registered: Mar 2002
Location: Sunny Suffolk
Posts: 22

Original Poster
Rep: Reputation: 15
I have got the make utilities and now 'make' and 'gmake' both work.

thanks for the help.
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Packages aren't installing Qwirt Linux - Software 5 07-31-2004 01:25 AM
installing packages spadeyboy *BSD 2 07-21-2004 12:43 AM
Installing packages andy753421 Slackware 5 05-31-2004 10:03 PM
Installing packages ... how to Llamaman Linux - Newbie 2 01-27-2004 11:16 AM
installing packages JAGwar1803 Linux - Newbie 3 01-01-2004 09:12 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 01:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration