lack of unix commands

im trying to install apache and perl on a sun server
but when i try to use commands like "make" and "source" it says that they are not found

do i have to download these? does that mean that many other unix commands are missing? does it mean that i have to download a version of unix (my understanding on this matter isnt great so excuse the basic questions)

thanks
paul
paulwhelanAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
tfewsterConnect With a Mentor Commented:
OK, so /cdrom/sol_7_sparc_sun_srvr/s0  is your (automatically mounted)  installation CD;  
You can now install package SUNWsprot from there using
 pkgadd -d  /cdrom/sol_7_sparc_sun_srvr/s0/Solaris_2.7

You will be prompted for which packages you wish to install. Install SUNWsprot, which will give you the "make" command;  Don't go mad and install everything, as /usr looks quite full already!

Your search path is standard for user "root", but "make" will probably be installed in /usr/ccs/bin, so you will need to add that to your path (see earlier comments) or run it with /usr/ccs/bin/make


 
0
 
tfewsterCommented:
Don't panic!

"source" is a built in c-shell command, so you need to check the shell you are running or specify at the start of your script files is csh (or use "exec" under ksh)

"make" should already be on your system, but may not be in your search path - check if /usr/ccs/bin/make or /usr/xpg4/bin/make exist and run make with the full pathname or add it to your search path

Are there any other commands missing/unusable?
0
 
paulwhelanAuthor Commented:
you wrote
-----------
"source" is a built in c-shell command, so you need to check the
shell you are running or specify at the start of your script files is csh (or use "exec" under ksh)
------------

im not sure what you mean here, how do i find out what shell i am running, how do i specify csh in the way that you mention

also
--------------------
 "make" should already be on your system, but may not be in your search path - check if /usr/ccs/bin/make or /usr/xpg4/bin/make exist and run make with the full pathname or add it to your search path
----------------------

make was "not found" in both dirs u recommended me to look in...

how do i add make to my search path?

it _is_ on the solaris 7 disk in the machine, can i copy it and other things like "source" to the server....aslo "man" doesnt work for any commands......

im really just beginning here so if u can give me step by step instructions id be greatful

thanks
paul
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
ahoffmannCommented:
> .. how do i find out what shell i am running,  ..
      echo $SHELL
simply type
      csh
then you're in a c-shell

> make was "not found" in both dirs u recommended me to look in...
      find / -name make

> how do i add make to my search path?
simply add the path find reports to your PATH environment variable, like in csh:
      set path = ($path /usr/ccs/bin)

Keep in mind that you need to install the bundled development kit (don't know the exact term) which contains make, cc etc.. You may simply copy them from cd and then chmod +x, but I recommend that it is simpler (for newbees) to install it.
0
 
tfewsterCommented:
shells: Typing "ps" will tell you what processes (including which shell) you are currently running;  If you are running ksh, just type "csh" to start another shell  (Use "exit" to close that shell and return to the parent shell). To force a shell script to use the c shell, the first line of the script should read #!/usr/bin/csh

How you append to your search path depends on which shell you are using: With the Korn shell (ksh) you would use "export PATH=$PATH:/new/path" with csh, use "set path=($path /new/path) to append the directory /new/path to the search list.

make: Try "whereis make" to see if it's already installed;  Is your "solaris 7 disk" the installation cd?

What error does man return?  "No manual entry for..."  could mean the software package hasn't been installed or that the man pages themselves are missing.  Which commands have you tried the man pages for?


0
 
paulwhelanAuthor Commented:
ahoffmann:
how and exactly which files do i copy from the solaris 7 installation disk to the server?

i think the problem is that the commands havent been installed

tfewster:
make is only on the solaris 7 installation disk.....
i did a search for it and thats the only place that it was.....
for man it says no manual entry found

so the big question is.....
how do i get all the unix commands ....make, source, man etc
from the cd onto the server?
should i install solaris 7 again?
if so can someone guide me through it?

thanks
paul
0
 
paulwhelanAuthor Commented:
ill leave a comment when i think the answer is
acceptable
i have a load of points so i can give some to all who conribute
0
 
ahoffmannCommented:
sorry, I'm not used to Solaris 7 installtion, probably there is an option, anyhow, to install these additional packages, please check your installation guide.
But you may always copy the directory containing make from CD to disk, or simply mount the CD, and then add the path of this directory to your PATH environment variable (see previous suggestions)

Again, "source" is not a program but a c-shell builtin (see previous comments)

Installing man-pages is more tricky, 'cause you need to know how they are stored on the CD and how the system expects them on disk (man or cat format, etc.), best is to go through the installation program.
But you may use them from CD too, if you know how (see: man man troff nroff)
0
 
paulwhelanAuthor Commented:
i tried this

mount -r -t hsfs /dev/sr0 /mnt

in order to mount commands from the cdrom.....

but it said illegal option -- t

??
0
 
ahoffmannCommented:
Solaris uses -F not -t for the filesystem type
(please read man pages, you'll get a much quicker response than from E-E ;-)
0
 
paulwhelanAuthor Commented:

# mount -r -F hsfs /dev/sr0 /mnt
mount: /dev/sr0 is already mounted, /mnt is busy,
        or allowable number of mount points exceeded


also this is where i found make
i just want it on the server!

../cdrom/sol_7_sparc_sun_srvr/s0/Solaris_2.7/Product/SUNWsprot/reloc/usr/share/li
b/make


thanks
paul
           
0
 
paulwhelanAuthor Commented:
also when i am root....


# ps
   PID TTY      TIME CMD
   620 pts/5    0:00 ps
   619 pts/5    0:00 sh
   535 pts/5    0:00 sh
#
                       
0
 
ahoffmannCommented:
Solaris uses -F not -t for the filesystem type
(please read man pages, you'll get a much quicker response than from E-E ;-)
0
 
paulwhelanAuthor Commented:
u already posted that comment....

also gunzip is not on the server!!

can anyone what to do so i can run commands like "gunzip" "make" etc on my server!!!
thanks
paul
0
 
ahoffmannCommented:
anything which is not on the server needs either to be installed, or mounted appropriate
(this thread gets to large, please post a new question for each command to be installed ;-)
0
 
paulwhelanAuthor Commented:
my points are tied up here....

i have a simple question



i want to run the two commands "gunzip" and "make" on my server!!!
                thanks
                paul
0
 
ahoffmannCommented:
all you have to do to get this running is still said in previous suggestions
0
 
paulwhelanAuthor Commented:
the mount command didnt work....seee abovecan u please repost instructions on installing gunzip or just see my
other new question "gunzip!"

thanks
paul
0
 
ahoffmannCommented:
> mount -r -t hsfs /dev/sr0 /mnt
is wrong, must be
mount -r -F hsfs /dev/sr0 /mnt
(I'm not shure about the -r option, seems to be new in Solaris 7, can't check it)
0
 
paulwhelanAuthor Commented:
i already did that above and got .....

# mount -r -F hsfs /dev/sr0 /mnt
                mount: /dev/sr0 is already mounted, /mnt is busy,
                        or allowable number of mount points exceeded

 
0
 
ahoffmannCommented:
please post result of:

      df -k
0
 
tfewsterCommented:
I suspect you have given us the answer to most most of your questions yourself - You said you can see:
.../cdrom/sol_7_sparc_sun_srvr/s0/Solaris_2.7/Product/SUNWsprot/reloc/usr/share/lib/make

This implies the cdrom is being automounted by solaris when you insert it, so it won't mount it again. It also implies the package you need to install (using pkgadd packagename install_disk..? - sorry, don't know the syntax - do man pkgadd!) is SUNWsprot.

Alternatively, as ahoffman says, copy the files from the CD into a directory that is in your search path (type echo $PATH to see the search list) - My only concern is that you will end up with a non-standard setup.

gunzip may be part of that package - If not, do a "find" for it on the CD (as you did for "make") and install the package it is part of (or again, copy the files)

Are you clear on csh/source now?


0
 
paulwhelanAuthor Commented:
# df -k
Filesystem            kbytes    used   avail capacity  Mounted on
/proc                      0       0       0     0%    /proc
/dev/dsk/c0t0d0s0     129716   84565   32180    73%    /
/dev/dsk/c0t0d0s6     410821  272196   97543    74%    /usr
fd                         0       0       0     0%    /dev/fd
/dev/dsk/c0t0d0s7    7835755      23 7757375     1%    /export/home
swap                  681224     280  680944     1%    /tmp
/vol/dev/dsk/c1t6d0/sol_7_sparc_sun_srvr/s5
                        1006       4     902     1%    /cdrom/sol_7_sparc_sun_sr
vr/s5
/vol/dev/dsk/c1t6d0/sol_7_sparc_sun_srvr/s4
                        1006       4     902     1%    /cdrom/sol_7_sparc_sun_sr
vr/s4
/vol/dev/dsk/c1t6d0/sol_7_sparc_sun_srvr/s3
                        1006       4     902     1%    /cdrom/sol_7_sparc_sun_sr
vr/s3
/vol/dev/dsk/c1t6d0/sol_7_sparc_sun_srvr/s2
                        1006       4     902     1%    /cdrom/sol_7_sparc_sun_sr
vr/s2
/vol/dev/dsk/c1t6d0/sol_7_sparc_sun_srvr/s1          
                       47974   33812    9366    79%    /cdrom/sol_7_sparc_sun_sr
vr/s1
/vol/dev/dsk/c1t6d0/sol_7_sparc_sun_srvr/s0
                      506248  506248       0   100%    /cdrom/sol_7_sparc_sun_sr
vr/s0
# echo $PATH
/usr/dt/bin:/usr/openwin/bin:/bin:/usr/bin:/usr/ucb:/usr/sbin
#

                                   
0
 
paulwhelanAuthor Commented:
# pkgadd -d /cdrom/sol_7_sparc_sun_srvr/s0/Solaris_2.7
pkgadd: ERROR: no packages were found in </cdrom/sol_7_sparc_sun_srvr/s0/Solaris
_2.7>
#    
0
 
tfewsterCommented:
My answer was straight off the man pages for pkgadd - but check you can see the CD with
ls /cdrom/sol_7_sparc_sun_srvr/s0/Solaris_2.7

You could also try adding /Product at the end of the command to force pkgadd to look in the subdirectory
0
 
paulwhelanAuthor Commented:
i tried this to add the "man" pages (i coundt find the dir for "make" or "gunzip")

# cd /cdrom/sol_7_sparc_sun_srvr/s0/Solaris_2.7/Product/SUNWman
# ls
archive  install  pkginfo  pkgmap   reloc
# install
usage: install [-cs] [-g group] [-m mode] [-o owner] file ...  destination
       install  -d   [-g group] [-m mode] [-o owner] dir
# pkgadd
pkgadd: ERROR: no packages were found in </var/spool/pkg>
                               
anyone know the usage for install?
                             
0
 
tfewsterCommented:
The man pages for additional programs will be installed with the programs they go with - The SUNWman package will be the man programs themselves.

You can check what packages are already installed with pkginfo

0
All Courses

From novice to tech pro — start learning today.