I have posted in the Shell Programming Scripting Forum for a problem with the use of shc and so on...
You can read it complete here: shell-programming-scripting/148510-problems-using-shc.html
I think the problem is: that there aren't compiler installed on the SuSe 10.2 server, so I can't run successfully the shc program. In the server, there is only command-line access.
I tried to install it with YAST, but it fails because ask for installation CDs that nor have nor can insert.
I've downloaded several rpm's packages with null results...
/root # which gcc
which: no gcc in (/sbin:/usr/sbin:/usr/local/sbin:/opt/gnome/sbin:/root/bin:/usr/local/bin:
/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/usr/openv/uss0001/sbin:
/usr/openv/netbackup/bin/support:/usr/openv/uss0001/sbin:/usr/openv/netbackup/bin/support:/root/bin:
/opt/VRTS/bin:/usr/openv/netbackup/bin:/usr/openv/netbackup/bin/admincmd:
/usr/openv/netbackup/bin/goodies:/usr/openv/volmgr/bin)
Looking in yast -> Software -> Software Management -> Shearch -> gcc I see this:
Code:
| |Name |Avail. Vers. |Inst. Vers. |Summary |Size
| i |cpp |4.1.2_20070115|4.1.2_20070115|The GCC Preprocessor |5.6 M
| + |gcc |4.1.2_20070115| |The GNU C Compiler and Support Files |1.8 M
| + |gcc-c++ |4.1.2_20070115| |The GNU C++ Compiler |6.3 M
| |gcc-fortran |4.1.2_20070115| |The GNU Fortran Compiler and Support Files |8.0 M
| |gcc-info |4.1.2_20070115| |GNU Info-Pages for GCC |1.4 M
| |gcc-java |4.1.2_20070115| |The GNU Java Compiler |5.9 M
| + |gcc-locale |4.1.2_20070115| |Locale Data for the GNU Compiler Collection|4.9 M
| + |gcc-obj-c++ |4.1.2_20070115| |GNU Objective C++ Compiler |6.1 M
| + |gcc-objc |4.1.2_20070115| |GNU Objective C Compiler |6.0 M
| i |libgcc |4.1.2_20070115|4.1.2_20070115|C compiler runtime library |98.6 K
| |libgcj |4.1.2_20070115| |Java Runtime Library for gcc |38.9 M
| |libgcj-32bit|4.1.2_20070115| |Java Runtime Library for gcc |21.4 M
The '+' where there because I tried to install it.
I look over the FS '/' and it found this 2 directories:
Code:
/root # cd /
/ # find ./ -name gcc -print
./usr/lib/gcc
./usr/lib64/gcc
/ # ls -lrt ./usr/lib/gcc;ls -lrt ./usr/lib64/gcc
total 4
drwxr-xr-x 3 root root 4096 2009-07-02 12:08 i586-suse-linux
total 4
drwxr-xr-x 3 root root 4096 2008-04-22 02:37 x86_64-suse-linux
/bin/magius/shc-3.8.6 # gcc -o magius magius.c
magius.c:1:19: error: stdio.h: No such file or directory
magius.c:2:20: error: string.h: No such file or directory
main
magius.c: In function âmainâ:
magius.c:6: warning: incompatible implicit declaration of built-in function âstrcpyâ
magius.c:6: error: âHelloâ undeclared (first use in this function)
magius.c:6: error: (Each undeclared identifier is reported only once
magius.c:6: error: for each function it appears in.)
magius.c:6: error: âMagiusâ undeclared (first use in this function)
magius.c:6: error: too many arguments to function âstrcpyâ
magius.c:7: warning: incompatible implicit declaration of built-in function âprintfâ
magius.c:7: error: expected expression before â%â token
Execution times (seconds)
TOTAL : 0.00 0.00 0.01 1824 kB
/bin/magius/shc-3.8.6 # cc -o magius magius.c
magius.c:1:19: error: stdio.h: No such file or directory
magius.c:2:20: error: string.h: No such file or directory
main
magius.c: In function âmainâ:
magius.c:6: warning: incompatible implicit declaration of built-in function âstrcpyâ
magius.c:6: error: âHelloâ undeclared (first use in this function)
magius.c:6: error: (Each undeclared identifier is reported only once
magius.c:6: error: for each function it appears in.)
magius.c:6: error: âMagiusâ undeclared (first use in this function)
magius.c:6: error: too many arguments to function âstrcpyâ
magius.c:7: warning: incompatible implicit declaration of built-in function âprintfâ
magius.c:7: error: expected expression before â%â token
Execution times (seconds)
TOTAL : 0.00 0.01 0.01 1824 kB
Code:
/bin/magius/shc-3.8.6 # cc1 -o magius magius.c
magius.c:1:19: error: stdio.h: No such file or directory
magius.c:2:20: error: string.h: No such file or directory
main
magius.c: In function âmainâ:
magius.c:6: warning: incompatible implicit declaration of built-in function âstrcpyâ
magius.c:6: error: âHelloâ undeclared (first use in this function)
magius.c:6: error: (Each undeclared identifier is reported only once
magius.c:6: error: for each function it appears in.)
magius.c:6: error: âMagiusâ undeclared (first use in this function)
magius.c:6: error: too many arguments to function âstrcpyâ
magius.c:7: warning: incompatible implicit declaration of built-in function âprintfâ
magius.c:7: error: expected expression before â%â token
Execution times (seconds)
parser : 0.01 (100%) usr 0.00 ( 0%) sys 0.00 ( 0%) wall 70 kB ( 4%) ggc
TOTAL : 0.01 0.00 0.01 1824 kB
As I expect any of them works. Its the same file at the end...
I can't compile anything, the final make error says "Command failed for target `install-recursive'", but I am not able to identify the root cause of that error, I tried with cc, gcc 4.5, also gcc 5.2, using make, using gmake 3.82, ld 5.11, gld 2.31... and I am totally stuck yet... please help, to... (4 Replies)
Hi All,
I am trying to compile httpd2.2.19 in RHEL5.5 using gcc version 4.1.2. This is first time I am trying to compile httpd in RHEL.
I ran configure with below option
./configure --prefix=/usr/local/apache --enable-rewrite --enable-ssl=shared... (0 Replies)
I have just installed OpenBSD on a 333MHz PPC iMac G3. It has a 6GB HDD that has been partitioned as 1GB MacOS 8.5.1, 3GB MacOS X 10.3.9, 2GB OpenBSD 4.8. I now need to install a bootloader so that my computer can recognize the OpenBSD partition at startup. I have been trying to install... (0 Replies)
well, i know wich GCC can be download by Manager package, easy!
but I want install gcc "whith myself hands"
I have gcc .tar and i cant install by console.
after comand $make: erro
ok! i dont have compiler, but i want install gcc!
sorry my english... (6 Replies)
I'm trying to compile gcc 3.4.6 on AIX 5.2 but I get this error:
bison -t --name-prefix=java_ -o java/parse.c java/parse.y
M4sugar requires GNU M4. Install it before installing M4sugar or
set the M4 environment variable to its path name.make: *** Broken pipe
gcc -c -g -O2 -DIN_GCC -W... (7 Replies)
I am new to comiling c/c++ programs with gcc compilier
unix - AIX version 5.3
gcc compiler version - 4.0.0
My makefile.
# makefile 1.0 08/20/98
#CC = cc
CC = gcc
ESQL = esql
CFLAGS = -Wall
DBSLIB=
DBSLIB=-L${INFORMIXDIR}/lib/esql -L${INFORMIXDIR}/lib `esql -libs`
ALL = hds_near... (9 Replies)
Hi all,
Yeasterday I try to compile c program by using cygwin. I just find an errors the fist one is concerinig about the end of the line.
To summit my Assignment which is the day after tommorow I have to compile my c program by using just gcc.
If any one know what do I have to... (5 Replies)
hi, everybody£º
i have a question, pls help me¡£
OS : RS/6000 AIX 4.3.3
cPU : Powerpc,POWER3
compiler : gcc 3.2.3
source file £º 8M
OS kernel : 32 bit (selecting at installing operating system, the hardware support 64 bit)
when i compiling the large source file (8 M), i... (3 Replies)
Hi all,
I compile my c program and get following result
hrnpfc01.c:1387: stray '\' in program
hrnpfc01.c:1387: parse error before `,'
hrnpfc01.c:1388: stray '\' in program
hrnpfc01.c:1388: parse error before `,'
hrnpfc01.c:1396: stray '\' in program
hrnpfc01.c:1396: parse error before... (4 Replies)
I need to know how to make a binary with gcc. I know how to create an obj file, but I'm not quite sure what to do about the linking part. I've gotten this far "gcc -c somefile.c somefile.o" then I'm left with an object file, but I don't see any linking command line options. Does anyone know how... (4 Replies)