The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM
Home Forums Register Rules & FAQ Members List Arcade Search Today's Posts Mark Forums Read


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .


Other UNIX.COM Threads You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
$PWD shows absolute path vs path w/symbolic links kornshellmaven Shell Programming and Scripting 3 06-13-2007 09:15 AM
getting full path from relative path polypus Shell Programming and Scripting 4 03-25-2007 09:08 AM
how to check the actual path instead of link path reldb UNIX for Advanced & Expert Users 4 10-04-2006 06:55 AM
vi - replacing a relative path with absolute path in a file Yinzer955i UNIX for Dummies Questions & Answers 2 09-07-2006 08:47 AM
cc path problem - no acceptable path found kendokendokendo UNIX for Dummies Questions & Answers 2 09-12-2005 06:52 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-25-2008
Registered User
 

Join Date: Apr 2008
Posts: 3
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Help with $path

I just installed solaris last night after never using any linux based system in my life. My problem is that i'm trying to install GNU nano, and when I try to do a "# ./configure", I get: "configure: error: no acceptable C compiler found in $PATH"

So after i soon find out that I have no gcc compiler and make is not installed. So i followed someones online instructions and figured out how to install gcc and make. Tried to install nano again and got the same error. So i found out about this "echo $root command and tried that and I get a blank line.
I then did a "# find / -name gcc" and got.


/usr/sfw/lib/gcc
/usr/sfw/bin/gcc
/usr/sfw/libexec/gcc
/usr/local/doc/gcc
/usr/local/bin/gcc
/usr/local/lib/gcc
/usr/local/libexec/gcc


I don't know what to do now. I understand that I need to have these directories as my $root, but I can't seem to figure out how. If anyone can help it would be greatly appreciated. Thanks.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 04-25-2008
Registered User
 

Join Date: Dec 2007
Location: Paris
Posts: 229
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Quote:
Originally Posted by Lpauia View Post
I just installed solaris last night after never using any linux based system in my life.
Solaris isn't Linux.
Quote:
So after i soon find out that I have no gcc compiler and make is not installed.
Both of these statements are incorrect. You have gcc installed and two versions of make are installed by default with Solaris.
Quote:
So i followed someones online instructions and figured out how to install gcc and make.
That wasn't necessary. You now have two versions of gcc and three make ...
Quote:
Tried to install nano again and got the same error.
But still none is in your PATH, which is the real issue you have.
Quote:
So i found out about this "echo $root command and tried that and I get a blank line.
I don't know where you find this "echo $root" command but it is irrelevant. A blank line is to be expected.
Quote:
I don't know what to do now. I understand that I need to have these directories as my $root, but I can't seem to figure out how. If anyone can help it would be greatly appreciated. Thanks.
You are confusing root/path with PATH

just do:
Code:
PATH=$PATH:/usr/sfw/bin:/usr/gnu/bin:/usr/ccs/bin
export PATH
./configure
Alternatively, you can just install a nano binary package instead of compiling it yourself.

Freeware List for Intel and Solaris 10
Reply With Quote
  #3 (permalink)  
Old 04-26-2008
Registered User
 

Join Date: Apr 2008
Posts: 3
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Thanks a bunch. I got it installed except everytime I open my terminal, I have to do the

PATH=$PATH:/usr/sfw/bin:/usr/gnu/bin:/usr/ccs/bin:/usr/local/bin
export PATH

before I can open nano. Is there anway I can set PATH so I don't have to use the above commands or is this just the way it is?

Also, once I get nano open, when I try to resize the window (I like to make it longer than the default), I get a segmentation fault. Now I understand that means I'm trying to access memory that's not there or that doesn't belong to me, but I don't understand why I get a seg fault here? I wrote a test program, compiled and ran it, so nano is working right except for the resize thing.
Reply With Quote
  #4 (permalink)  
Old 04-26-2008
era era is offline
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 2,203
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
You can set the PATH permanently by adding that to your .profile or similar. ("Or similar" because it depends on which shell you are using. .profile should work for Bourne-compatible shells.) You might still want to investigate why and how your PATH got zapped in the first place.

A segmentation fault in nano is not "your" fault, it's the guy who wrote nano who apparently didn't take window size changes into account, or didn't know how to handle them properly. Now you have the source code so maybe you can fix that (-: but seriously, you might just live with not resizing your terminal, or use another editor which can cope.
Reply With Quote
  #5 (permalink)  
Old 04-26-2008
Registered User
 

Join Date: Apr 2008
Posts: 3
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
I have no clue on how my path got zapped. Probably something I did. Anyway how would I go about adding my path to my .profile?
Reply With Quote
Google UNIX.COM
Reply



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 04:41 PM.


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

Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102