Failed to install shell script compiler (shc)


 
Thread Tools Search this Thread
Operating Systems HP-UX Failed to install shell script compiler (shc)
# 1  
Old 01-30-2008
Failed to install shell script compiler (shc)

I have install gcc, downloaded shc-3.8.6 and extracted in /install
> cd /install/shc-3.8.6
> export CC=/usr/local/bin/gcc
> make cleanall
> make test
"Makefile" 72 lines, 1526 characters
# make test
/usr/local/bin/gcc -Wall -O6 -pedantic shc.c -o shc
*** Compiling script "match"
CFLAGS="-Wall -O6 -pedantic" ./shc -v -f match
shc shll=sh
shc [-i]=-c
shc [-x]=exec '%s' "$@"
shc [-l]=
shc opts=
shc: /usr/local/bin/gcc -Wall -O6 -pedantic match.x.c -o match.x
match.x.c:111: warning: string length '1042' is greater than the length '509' ISO C90 compilers are required to support
match.x.c: In function 'untraceable':
match.x.c:292: error: too few arguments to function 'ptrace'
./shc: Error 0
*** Error exit code 1

Anyone install shc successfully?
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

shc compiler issue

I am using the shc shell compiler, it works fine, just that when i execute it, it displays the code at the terminal. Is there any way to hide this as well? otherwise it beats the purpose of hiding the code. Thanks ! (7 Replies)
Discussion started by: ysvsr1
7 Replies

2. OS X (Apple)

How should I install 'make' compiler ?

I need too install GDB in order to debug a program. I need to install GDB through the UNIX command 'make install'. I downloaded a full directory of hundreds of files allowing to get a gdb executable but need a compilation before ... The problem is UNIX can't find 'make' command. I work under... (5 Replies)
Discussion started by: shub22
5 Replies

3. Red Hat

Install cobol compiler

Hi I dont have a cobol compiler in my redhhat linux box, and so I want to install it. When i try the below command sudo apt-get install open-cobol it tells "apt-get : command not found". I tried to find apt-get under my root, could not find it anywhere. Should we install apt-get also?... (4 Replies)
Discussion started by: unx_freak
4 Replies

4. Shell Programming and Scripting

SHC Compiler [ERROR] AIX

Hello there, I’m compiling a shell script under UNIX AIX 5.3 operating system. I’m facing a “glitch” when I tried to run the .x file AIX sent the error message “Killed”. # rpm -qa libgcc-4.2.0-3 libstdc++-4.2.0-3 gcc-4.2.0-3 libstdc++-devel-4.2.0-3 gcc-c++-4.2.0-3 # make *** ... (2 Replies)
Discussion started by: micrinho
2 Replies

5. AIX

install two different compiler version

Hi all. I have a simple question. There's a way to install under AIX system (5.3) two different compiler version, i.e. ibm xlf fortran 11 and 12? Seems that smitty doesn't allows user to change the default installation path; it only allows you to save the replaced files of the superseded... (1 Reply)
Discussion started by: poldo000
1 Replies

6. UNIX for Dummies Questions & Answers

install C compiler without make

Hi all, I dont have much knowledge about linux, but want to learn. I have installed Plop linux(PLoP - Home) on USB Flashdrive. I want to install gcc compiler to it. The installation of C compiler ask for make command, which is not found in the distribution. When I tried to install gnu make,... (4 Replies)
Discussion started by: johnsmithgr8
4 Replies

7. Solaris

Can`t install gcc compiler

Hi, Installed the gcc compiler off the Solaris 9 Companion CD a while back , but needed to delete it due to disk space issues. Now that I have sorted out our root disk space I can`t reinstall the compiler. If I select all the packages off the Development/Languages menu , the install list... (3 Replies)
Discussion started by: markdr011
3 Replies

8. Shell Programming and Scripting

C-shell Script Compiler

I'm new to unix programming. I wanted to know if there's any software to compile C-shell Script. Thanks! (2 Replies)
Discussion started by: ilak1008
2 Replies

9. Shell Programming and Scripting

shc: shell compiler?

Has anyone ever gotten shc compiler program to work. I am trying to encrypt a bash script on centos. When I run the command "shc -f test.sh", the binary actually gets created; however, when I try to run the binary I get the following the error: # ./test.sh.x ./test.sh.x: No such file or... (1 Reply)
Discussion started by: cstovall
1 Replies
Login or Register to Ask a Question
Perlbal::Manual::Install(3pm)				User Contributed Perl Documentation			     Perlbal::Manual::Install(3pm)

NAME
Perlbal::Manual::Install - Steps, dependencies and requirements to install Perlbal VERSION Perlbal 1.78. DESCRIPTION How to install Perlbal. Installing Perlbal for the impatient $ perl -MCPAN -e shell cpan> install Perlbal App::cpanminus is also good at quickly installing Perlbal and all of its dependencies $ cpanm Perlbal IO::AIO Perlbal::XS::HTTPHeaders ... will give you an ideal Perlbal environment. Installing Perlbal (with a little more detail) You need to have perl on the machine. If you don't have it yet, you can grab it from http://www.perl.org/. Having perl on the machine should give you access to the CPAN shell, one of several possible ways to install and upgrade Perl modules. Start your CPAN shell: $ perl -MCPAN -e shell And now tell it to install Perlbal: cpan> install Perlbal In the end you should see a message stating "make install -- OK" (if that's not the case, please refer to section Troubleshooting later in this document). Installing Perlbal by hand (without using the CPAN shell) Head to <http://search.cpan.org/dist/Perlbal/> and find the download link. Download the file and untar it: $ tar zxvf Perlbal-X.XX.tar.gz Note that X.XX stands for the version number. Replace that with the latest version you got. Now you need to create the Makefile and run it; we're also going to run the tests before installing Perlbal: $ cd Perlbal-X.XX.tar.gz $ perl Makefile.PL $ make $ make test $ sudo make install Installing the latest development version You can clone Perlbal's repository from github and install it by hand by following the next steps: $ git clone http://github.com/perlbal/Perlbal.git $ cd Perlbal $ perl Makefile.PL $ make $ make test $ sudo make install Optional Dependencies and Asynchronous IO It is very highly recommended that Perlbal::XS::HTTPHeaders is installed and enabled. If you have poor performance, the first thing to do is install Perlbal::XS::HTTPHeaders. $ perl -MCPAN -e shell cpan> install Perlbal::XS::HTTPHeaders Enable it in your configuration: XS enable headers Perlbal checks for IO::AIO availability and uses it to perform asynchronous IO operations. If you're performing disk operations (e.g., using Perlbal as a web server), having IO::AIO will improve your response times. The only thing required in order to benefit from this feature is to install IO::AIO: $ perl -MCPAN -e shell cpan> install IO::AIO If you don't have IO::AIO installed a warning message will be displayed when you start perlbal: WARNING: AIO mode disabled or not available. Perlbal will run slowly under load if you're doing any disk operations. (e.g. web_server mode). Install IO::AIO for better performance. Checking that Perlbal is successfully installed Perlbal is shipped with some sample configuration files that reside in the conf directory (of the source). You can give Perlbal a try by heading to the directory where the source is and using the following command: $ sudo perlbal -c conf/webserver.conf By pointing your browser at "localhost:80" you should now see Perlbal responding (showing you the contents of "/usr/share/doc"). Note that the webserver.conf file sets up a Perlbal web server that listens on port 80. If you already have something listening on port 80 you need to either stop that service or change the port number on webserver.conf. Also note that if your machine doesn't have a "/usr/share/docs" directory you'll see an "ERROR: Directory not found for service docs" error message. Change the directory in the configuration file to something that exists. Troubleshooting Prerequisites not found If you're installing Perlbal by hand you may encounter some error messages describing how some prerequisites are not available: user@machine:~/Perlbal-X.XX$ perl Makefile.PL Checking if your kit is complete... Looks good Warning: prerequisite BSD::Resource 0 not found. Warning: prerequisite Danga::Socket 1.44 not found. Warning: prerequisite HTTP::Date 0 not found. Warning: prerequisite HTTP::Response 0 not found. Warning: prerequisite Sys::Syscall 0 not found. Writing Makefile for Perlbal This is perl's way of telling you that since you're installing Perlbal by hand you'll also need to install its prerequisites by hand. Your first choice is to download each of them separately and perform the same installation procedure for each. Unfortunately, they are all likely to have additional prerequisites. Recursively. Alternately, see the following Troubleshooting item: "No connection to the internet". No connection to the internet If you don't have a connection to the internet you can still install Perlbal, but you'll have to tranfer the source somehow to the machine. Given that Perlbal has other module dependencies from CPAN (and those have their own dependencies too), here's a solution for this problem: Step 1: On a machine with connection to the internet, install CPAN::Mini: $ perl -MCPAN -e shell cpan> install CPAN::Mini Run "minicpan" to create a minimal CPAN mirror (it contains only the latest version of each module): $ minicpan -l /home/user/minicpan/ -r http://cpan.org/ Now grab that directory and record it to something you can read on the other machine (e.g., a DVD, a hard drive). Once you're on that machine, you can run the CPAN shell and tell it to look for distributions on the local directory where you now have your own CPAN mirror: $ perl -MCPAN -e shell cpan> o conf urllist push file:///home/user/path/to/minicpan cpan> install Perlbal If you want "cpan" to record this change don't forget to commit: cpan> o conf commit No compiler available If there's no compiler available on the machine you will probably see an error ending in something like: Failed during this command: DORMANDO/Perlbal-X.XX.tar.gz : writemakefile NO '/usr/bin/perl Makefile.PL INSTALLDIRS=site' returned status -1 You need to install something like "gcc" (check <http://gcc.gnu.org/>). After installing "gcc", when trying to install Perlbal again you may get another error message: cpan> install Perlbal Running install for module 'Perlbal' Running make for D/DO/DORMANDO/Perlbal-X.XX.tar.gz Has already been unwrapped into directory /home/myself/.cpan/build/Perlbal-X.XX-GFko0J '/usr/bin/perl Makefile.PL INSTALLDIRS=site' returned status -1, won't make Running make test Make had some problems, won't test Running make install Make had some problems, won't install This is the cpan shell assuming nothing changed in the system and skipping a few steps. You need to let it know you're willing to forget the past: cpan> look Perlbal $ rm -rf * $ exit And now you can try installation again: cpan> install Perlbal SEE ALSO Perlbal::Manual. perl v5.14.2 2012-03-23 Perlbal::Manual::Install(3pm)