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
cxref-cpp(1)						      General Commands Manual						      cxref-cpp(1)

NAME
cxref-cpp - A modified C preprocessor to use with cxref. SYNOPSIS
cxref-cpp ... DESCRIPTION
To improve the output that is available for the source code for cross-referencing a modified version of the GNU CPP v2.7.2 is supplied (named cxref-cpp). This modified C preprocessor allows for a finer control over some features of the preprocessing that are not important for a compiler. In a standard preprocessor, the preprocessor directives are intended for use only by the preprocessor, so passing the information through is not important. With cxref-cpp, there are some features that are different to the standard GNU CPP: Compared to gcc versions earlier than version 2.8.0 there is an extra option that will output the #include lines from the source file. In version 2.8.0 and later this option is present. Comments trailing a #include or a #define are not preserved by all versions of gcc even if the -C option is used. This is not important while compiling, but is useful for documenting. The cxref-cpp program will take on the personality of the installed version of gcc so that the gcc header files can be parsed. This means that it includes the same default include directory paths and macro definitions. The file that contains these definitions is called cxref-cpp.defines and is installed by the cxref-cpp-configure program or specified by the -cxref-cpp-defines command line option. OPTIONS
The same as for gcc, apart from '-cxref-cpp-defines' described above. SEE ALSO
cxref(1), cxref-cpp-configure(1), gcc(1) May 9, 2004 cxref-cpp(1)
All times are GMT -4. The time now is 04:09 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy