Sponsored Content
Operating Systems Solaris No cc/gcc installed on SunOS 5.10 Post 302552993 by christr on Tuesday 6th of September 2011 09:36:40 AM
Old 09-06-2011
I was able to extract it just fine.


-bash-3.00$ mkdir temp2
-bash-3.00$ cd temp2
-bash-3.00$ ls
shc-3.8.7.tgz
-bash-3.00$ gunzip shc-3.8.7.tgz
-bash-3.00$ ls
shc-3.8.7.tar
-bash-3.00$ tar xfv shc-3.8.7.tar
x shc-3.8.7/CHANGES, 3637 bytes, 8 tape blocks
x shc-3.8.7/Copying, 17982 bytes, 36 tape blocks
x shc-3.8.7/Makefile, 1940 bytes, 4 tape blocks
x shc-3.8.7/match, 336 bytes, 1 tape blocks
x shc-3.8.7/pru.sh, 155 bytes, 1 tape blocks
x shc-3.8.7/shc-3.8.7.c, 24962 bytes, 49 tape blocks
x shc-3.8.7/shc.1, 3136 bytes, 7 tape blocks
x shc-3.8.7/shc.README, 1544 bytes, 4 tape blocks
x shc-3.8.7/shc.c symbolic link to shc-3.8.7.c
x shc-3.8.7/shc.html, 4558 bytes, 9 tape blocks
x shc-3.8.7/test.bash, 138 bytes, 1 tape blocks
x shc-3.8.7/test.csh, 52 bytes, 1 tape blocks
x shc-3.8.7/test.ksh, 142 bytes, 1 tape blocks
-bash-3.00$ ls -la
total 146
drwxr-xr-x 3 chris sysadmin 512 Sep 6 08:33 .
drwxr-xr-x 22 chris sysadmin 1024 Sep 6 08:32 ..
drwxr-xr-x 2 chris sysadmin 512 Sep 6 08:33 shc-3.8.7
-rw-r--r-- 1 chris sysadmin 71680 Sep 6 08:30 shc-3.8.7.tar
-bash-3.00$ cd shc-3.8.7
-bash-3.00$ ls
CHANGES Makefile pru.sh shc.1 shc.c test.bash test.ksh
Copying match shc-3.8.7.c shc.README shc.html test.csh
-bash-3.00$ ls -la
total 136
drwxr-xr-x 2 chris sysadmin 512 Sep 6 08:33 .
drwxr-xr-x 3 chris sysadmin 512 Sep 6 08:33 ..
-rw-r----- 1 chris sysadmin 3637 Feb 10 2010 CHANGES
-rw-r----- 1 chris sysadmin 17982 May 9 1996 Copying
-rw-r----- 1 chris sysadmin 1940 Feb 10 2010 Makefile
-rwxr-x--- 1 chris sysadmin 336 Feb 21 2003 match
-rwxr-x--- 1 chris sysadmin 155 Jun 19 2003 pru.sh
-rw-r----- 1 chris sysadmin 24962 Feb 10 2010 shc-3.8.7.c
-rw-r----- 1 chris sysadmin 3136 Jul 8 2004 shc.1
-rw-r----- 1 chris sysadmin 1544 Jun 19 2003 shc.README
lrwxrwxrwx 1 chris sysadmin 11 Sep 6 08:33 shc.c -> shc-3.8.7.c
-rw-r----- 1 chris sysadmin 4558 Jul 8 2004 shc.html
-rwxr-x--- 1 chris sysadmin 138 Nov 12 2004 test.bash
-rwxr-x--- 1 chris sysadmin 52 Jun 19 2003 test.csh
-rwxr-x--- 1 chris sysadmin 142 Jan 18 2008 test.ksh
-bash-3.00$ head -30 shc.README

Purpose:

A generic shell script compiler. Shc takes a script, which is
specified on the command line and produces C source code. The
generated source code is then compiled and linked to produce a
stripped binary executable. Use with care.

Building:

Just do a "make"


Testing:

Try: "make test"
or: "shc -v -f match" then "match.x sh"

Caveat emptor: see Copyright

The results look fine to me, but I havn't used this in anger, but
the author has used shc for his work widely over SunOS, Solaris and
Linux, and done some testing on Irix and HPUX.

We tested it on a few SMALL ksh scripts - big tasks should probably
be written in C in the first place (see _SC_ARG_MAX below)!


Bugs:

-bash-3.00$
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

SunOS 5.8

I am loging into a SunOS 5.8 box for the first time. I do not see a .profile file in the home directory. Also on the command line when I type a backspace to correct my typing I get a ^H character. Where and how can I fix this? Thanks in advance (5 Replies)
Discussion started by: jxh461
5 Replies

2. UNIX for Advanced & Expert Users

Migration of binary file from Sunos 5.8 to Sunos 5.9

I have compiled binary file using "cc" on SunOS 5.8 and the same binary file i have copied to SunOS 5.9 and it is giving me core dump error.I want to know whether migration of compiled code from lower version to higer version created this problem. how can i solve this problem.I am pasting the core... (1 Reply)
Discussion started by: Arvind Maurya
1 Replies

3. UNIX for Dummies Questions & Answers

Emacs & GCC not installed by default?

I just installed SUSE Linux 10.0 on my computer but when I typed " emacs & " and " gcc -c main.c" in the terminal, those programs couldn't be found. So the Linux install package does not install those programs by default? (2 Replies)
Discussion started by: whutes
2 Replies

4. Solaris

Looking for help with SunOS 5.6

Hey all, I've got my hands on 10 SunOS 5.6 SPARCStation 20 machines and I'm looking to get them up and running. They're all in various states of disrepair but I've got them all to a state where the hardware is working and the machine will at least attempt to boot. I've only used Solaris as a... (1 Reply)
Discussion started by: kevpatts
1 Replies

5. Solaris

Installing gcc - recieve error message gcc : cannot execute

AIM- Install Oracle 11g on Solaris using VMWare Steps 1.Logged on as root 2.Created subfolders à /usr/local/bin & /usr/local/bin/gcc 3.Downloaded gcc & libiconv & unzipped them on my harddrive & burnt them on CD 4.Copied files from CD to /usr/local/bin/gcc 5.Terminal (root) à pkgadd -d... (8 Replies)
Discussion started by: Ackers
8 Replies

6. Solaris

SunOS 5.8 vs 5.10

Hi, I am bulding a path to open files like this \path\values\file.xxx This path is opened in an IE browser window and opens the file/document I am trying to see. I mean it opens a pdf document or it promps you to "save" or "open" the specific file (if it's a .xml, .doc, .html). I was using... (1 Reply)
Discussion started by: hcibl_javok
1 Replies

7. Solaris

command 'cc' failed even though gcc is installed

I'm trying to build some python modules on a Solaris 10 machine. It has gcc as /usr/sfw/bin/gcc. # CC=gcc python setup.py build running build running build_py running build_ext cc -c actread.c -o actread.o unable to execute cc: No such file or directory error: command 'cc' failed with exit... (8 Replies)
Discussion started by: aussieos
8 Replies

8. AIX

OS Patches installed but they seem as not installed

Hello everyone: I've installed an OS patch into AIX 6.1 by running the following command: instfix -d /tmp/6100-02-03 -k "IZ41855" however it seem not installed instfix -i -k "IZ41855" There was no data for IZ41855 in the fix database. what am I doing wrong? (8 Replies)
Discussion started by: edgarvm
8 Replies

9. Red Hat

Trouble with installed / not installed rpm unixODBC/libodbc.so.1

Hey there, i run 1: on my server (RHEL 6) and getting response that the libodbc is not installed. If i use yum for installation, it tells me, there is no package like this ( 2: ). Since in the description of Definiens is mentioned that the Run-time dependency is unixODBC (libodbc.so.1), I assume... (2 Replies)
Discussion started by: rkirsten
2 Replies

10. UNIX for Beginners Questions & Answers

Bash find version of an installed application but if none is found set variable to App Not Installed

Hello Forum, I'm issuing a one line bash command to look for the version of an installed application and saving the result to a variable like so: APP=application --version But if the application is not installed I want to return to my variable that the Application is not installed. So I'm... (2 Replies)
Discussion started by: greavette
2 Replies
FMS(8)							       AFS Command Reference							    FMS(8)

NAME
fms - Determine a tape's capacity and a tape device's filemark size SYNOPSIS
fms -tape <tape special file> [-help] fms -t <tape special file> [-h] DESCRIPTION
The fms command determines the capacity of the tape currently in the tape device identified by the -tape argument, along with the size of the filemark for the device. The filemark is also referred to as the device's end-of-file (EOF) marker, and can differ for each combination of tape and tape device. As the Tape Coordinator writes a dump, it writes a filemark between the data included from each volume and also tracks the amount of space left before the end of the tape (EOT). For some tape devices, the filemark is large enough (multiple megabytes) that failure to consider it leads the Tape Coordinator significantly to overestimate the available space. The intended use of this command is to determine tape capacity and filemark size values that can be specified in a tape device's entry in the /var/lib/openafs/backup/tapeconfig file. For certain types of tape drives, the Tape Coordinator operates more efficiently when the tapeconfig file lists accurate values. For further discussion, see the OpenAFS Administration Guide chapter on configuring the Backup System. Insert a tape in the drive before issuing this command. CAUTIONS
Do not use this command on compressing tape devices in compression mode or with tape devices that handle tapes of multigigabyte (or multiterabyte) capacity. It does not produce accurate results in those cases. For alternate suggestions on the values to record in the tapeconfig file for compressing drives, see the OpenAFS Administration Guide chapter on configuring the Backup System. Running the command completely overwrites the tape, so use a blank one or one that can be recycled. Because it writes filemarks to the complete length of the tape, the command can take from several hours to more than a day to complete. OPTIONS
-tape <tape special file> Specifies the UNIX device name of the tape device for which to determine filemark size and the capacity of the tape it currently contains. The format varies on different system types, but usually begins with /dev; an example is /dev/sd0a. -help Prints the online help for this command. All other valid options are ignored. OUTPUT
The command generates output both on the standard output stream and in the fms.log file that it creates in the current working directory. The output reports the capacity of the tape in the device and the device's filemark size. The first few lines of output include status information about the execution of the command, including such information as the number of blocks and the number of file marks written to the tape by the command. The last two lines of both screen and file output provide the following information: o "Tape capacity is number bytes": specifies the size, in bytes, of the tape in the device. o "File marks are number bytes": specifies the device's filemark size in bytes. The following message indicates that the fms command interpreter cannot access the tape device. The command halts. Can't open tape drive I<device> The following message indicates that the command interpreter cannot create the fms.log log file. Again, the command halts. Can't open log file EXAMPLES
The following command illustrates the output for the device called /dev/rmt1h: % fms /dev/rmt1h wrote block: 130408 Finished data capacity test - rewinding wrote 1109 blocks, 1109 file marks Finished file mark test Tape capacity is 2136604672 bytes File marks are 1910205 bytes The following appears in the fms.log file: fms test started wrote 9230 blocks Finished file mark test Tape capacity is 151224320 bytes File marks are 2375680 bytes PRIVILEGE REQUIRED
The issuer must be able to insert and write to files in the currently working directory, if the fms.log file does not already exist. If it already exists, the issuer need only be able to write to it. SEE ALSO
fms.log(5), tapeconfig(5) COPYRIGHT
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved. This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell. OpenAFS 2012-03-26 FMS(8)
All times are GMT -4. The time now is 11:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy