Eskimo North

Eskimo North Community - Register It's Free!
It is currently Tue Jun 18, 2013 10:33 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Shell Environments
PostPosted: Sun Aug 19, 2007 9:58 pm 
Offline
Site Admin
User avatar

Joined: Sun Jul 30, 2006 4:25 am
Posts: 239
Location: Shoreline, WA
There are several different Unix environments in existence, System V Unix, BSD, SunOS, and GNU systems (like Linux). Because various commands behave differently in these different environments, what you learned on one system may not work on another.

To make this system as much like what you are used to, there are separate execution directories containing different versions of commands. By arranging your PATH variable, which tells your shell which directories to look in for commands and in what order, with the specialized of the commands you prefer first, you can make the system commands behave in the manner to which you are accustomed.

By default the environment you are in is the default SunOS 4.1.4 environment. Some time in the future this will change, but presently that's what it is.

If you prefer: Put this directory in your path first:

A GNU environment /usr/local/gnu/bin
A BSD environment /usr/ucb
A System-V environment /usr/5bin

There are two C compilers on the system 'cc' is the old antiquated ATT compiler. It will not compile modern C code and is useful only for trying to compile ancient code, like the C version of adventure.
The other compiler is gcc, (GNU C). For any modern software this is what you will want to use.

In the make file of any modern program put:

CC = gcc

This will cause make to use "gcc" as the compiler instead of "cc".

You may also want to change your shell to one that you are most familiar with.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group