C command not found


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting C command not found
# 1  
Old 09-12-2014
C command not found

Code:
Dear All,

Code:
I am trying to install a program in Opensuse linux and while issuing the 'make' command, its showing me an error /bin/sh: C: command not found

Kindly help me to troubleshoot the problem.
I have gcc, c++ all install in the linux machine.
Thanks

# 2  
Old 09-12-2014
We need more details than that to help you.

What program are you building?

How did you configure it? Did you configure it?

Where does that error appear? Did it print anything else? What is the exact error message, word for word, letter for letter, keystroke for keystroke? I'd be surprised if that's actually what it said, there is no 'C' program that I know of.
# 3  
Old 09-12-2014
Dear Corona688,
This is a program called mfold-3.6 which I downloaded from
Code:
http://mfold.rna.albany.edu/?q=mfold/download-mfold

and am trying to install on OpenSuse linux (Linux 3.11.10-21-desktop x86_64).
The install file mentions the following steps to install:
Code:
M. Zuker, March 2013.

                       INSTALLATION of mfold 3.5

mfold version 3.5 uses a configure script.

Some non-interactive mfold_util programs, in particular, sir_graph and
boxplot_ng, are included so that structure and dot plots can be
created. It is preferable to have the mfold_util-4.6 versions of these
programs.  

With this version, no environment variables are required. Energy and
related files will be read from the installation data directory,
usually /usr/local/share/mfold (or $prefix/share/mfold, where $prefix
is specified by using --prefix= when running ./configure).

After running ./configure (or the more convenient ./Configure.bash
script), 

make

compiles the Fortran, C and C++ programs and creates the mfold and
mfold_quik scripts.

make install

places the binaries and scripts into $prefix/bin and data files into
$prefix/share/mfold. These directories are created if they do not
already exist.

As in earlier versions, the current working directory will be searched
first for energy files when the folding program is run.

Please report bugs, other problems or suggestions to zukerm@rpi.edu
Look at the files in the "doc" directory, especially the manual, which
is in PostScript, pdf and HTML form.

I have already downloaded the program in /usr/local/mfold-3.6 folder.

This is the output of my ./Confiugre_bash:
Code:
linux-oc9r:/usr/local/mfold-3.6 # ./Configure.bash 
configure: loading site script /usr/share/site/x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-unknown-linux-gnu
checking for gawk... (cached) gawk
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether c++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of c++... gcc3
checking for gcc... cc
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking dependency style of cc... gcc3
checking whether ln -s works... yes
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgfortran... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking for nagfor... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking for ranlib... ranlib
checking how to run the C preprocessor... cc -E
checking whether cc understands -c and -o together... yes
checking for sqrt in -lm... yes
checking for gdImageCreate in -lgd... no
checking for jpeg_CreateCompress in -ljpeg... no
checking for png_init_io in -lpng... yes
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking gd.h usability... no
checking gd.h presence... no
checking for gd.h... no
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether struct tm is in sys/time.h or time.h... time.h
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for error_at_line... yes
checking for bzero... yes
checking for floor... yes
checking for sqrt... yes
checking for strchr... yes
checking for strspn... yes
checking for strstr... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating c++/Makefile
config.status: creating src/Makefile
config.status: creating dat/Makefile
config.status: creating scripts/Makefile
config.status: creating scripts/filter-sort
config.status: creating scripts/h-num
config.status: creating scripts/reformat-seq.sh
config.status: creating scripts/mfold
config.status: creating scripts/mfold_quik
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands

After that I issue "make" command which gives me huge compilation output, the first few lines I am pasting here:
Code:
linux-oc9r:/usr/local/mfold-3.6 # make
make  all-recursive
make[1]: Entering directory `/usr/local/mfold-3.6'
Making all in src
make[2]: Entering directory `/usr/local/mfold-3.6/src'
C -O3 -Wall -fno-automatic -ffixed-line-length-none   -c -o distance-distance.o `test -f 'distance.f' || echo './'`distance.f
/bin/sh: C: command not found
make[2]: [distance-distance.o] Error 127 (ignored)
C -O3 -Wall -fno-automatic -ffixed-line-length-none     -o distance distance-distance.o distance-bpin.o distance-bpsrch.o  -lpng -lm 
make[2]: C: Command not found
make[2]: [distance] Error 127 (ignored)
C -O3 -Wall -fno-automatic -ffixed-line-length-none   -c -o ct2bp-ct2bp.o `test -f 'ct2bp.f' || echo './'`ct2bp.f
/bin/sh: C: command not found

Here in the output you can see the error: "/bin/sh: C: command not found"

When I try to execute the program, it dies with an "auxgen" error, see below:

Code:
 mfold version 3.6
REUSE= NO
auxgen failed
Job Aborted

I am not sure how to troubleshoot.

Thanks for your time and consideration.
Regards
# 4  
Old 09-12-2014
It builds here without those errors, running mfold gives me

Code:
./mfold: line 7: mfold_datdir: command not found
Usage is
mfold SEQ='file_name' with optional parameters:
    [ AUX='auxfile_name' ] [ RUN_TYPE=text (default) or html ]
    [ NA=RNA (default) or DNA ] [ LC=sequence type (default = linear) ]
    [ T=temperature (default = 37 deg C) ] [ P=percent (default = 5) ]
    [ NA_CONC=Na+ molar concentration (default = 1.0) ]
    [ MG_CONC=Mg++ molar concentration (default = 0.0) ]
    [ W=window parameter (default - set by sequence length) ]
    [ MAXBP=max base pair distance (default - no limit) ]
    [ MAX=maximum number of foldings to be computed (default 100) ]
    [ MAX_LP=maximum bulge/interior loop size (default 30) ]
    [ MAX_AS=maximum asymmetry of a bulge/interior loop (default 30) ]
    [ ANN=structure annotation type: none (default), p-num or ss-count ]
    [ MODE=structure display mode: auto (default), bases or lines ]
    [ LAB_FR=base numbering frequency ] [ ROT_ANG=structure rotation angle ]
    [ START=5' base # (default = 1)] [ STOP=3' base # (default = end) ]
    [ REUSE=NO/YES (default=NO) reuse existing .sav file ]

That first error is just because I didn't bother putting the folder I installed it into, into my PATH.

I don't know what's provoking those 'command not found' errors. Maybe check in config.log.
# 5  
Old 09-12-2014
Dear Corona688,

Thank you for your reply. If it didn't gave you any errors while building, then does it means that I have to install any C-libraries or compilers?

I am attaching the config.log file as it is a huge file to paste here.

I am also attaching a test sequence to test the program with command-line parameter:
Code:
mfold SEQ='M23263_rna_300-1.txt' RUN_TYPE=text NA=RNA MA

# 6  
Old 09-12-2014
I don't recognize that error at all. I certainly have no 'C' program on my system or see anything in my makefiles that would provoke such a message.

Code:
$ mfold SEQ='M23263_rna_300-1.txt' RUN_TYPE=text NA=RNA MA
mfold version 3.6
Invalid entry:  MA on command line.

$

Actually -- I just noticed one big difference between what I did and what you did! Out of habit, I ran ./configure and not ./Configure.bash.

To be precise, I ran ./configure --prefix=/home/username/archive/mfold. The prefix is where it installs -- I put it in my home directory. /usr/local/ would be a decent choice if you needed it to be global to the machine. You'd need to add it to your path to use it, PATH="${PATH}:/usr/local/bin" but it'd be separate from your system utilities and easy to remove if needed.

Last edited by Corona688; 09-12-2014 at 04:22 PM..
# 7  
Old 09-12-2014
What are the contents of the makefile you are using...seems like it maybe corrupted...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Ar command not found

Hi all, ar command not found on Solaris 10 version. We can execute under ./ar command /usr/ccs/bin directory. However, we want to execute ar command anywhere. We add to /usr/ccs/bin entry under /etc/profile file shown as below. umask 002 trap 2 3 ... (2 Replies)
Discussion started by: ziosnim
2 Replies

2. Shell Programming and Scripting

Want to terminate command execution when string found in the command output

Hi Experts, I am very much new to linux scripting, I am currently working on reducing my manual work and hence writing a script to automate few task. I am running below command to snmpwalk the router.. snmpwalk -v 3 -u WANDL_SU -a MD5 -A vfipmpls -x DES -X VfIpMpLs -l authPriv... (19 Replies)
Discussion started by: Hanumant.madane
19 Replies

3. Shell Programming and Scripting

When i am trying to execute export command within a shell script it is saying command not found.

I am running the export command within a view to use that value inside my build script. But while executing it it is saying "export command not found" My code is as follows: -------------------------- #!/bin/sh user="test" DIR="/bldtmp/"$user VIEW="test.view1" echo "TMPDIR before export... (4 Replies)
Discussion started by: dchoudhury
4 Replies

4. Homework & Coursework Questions

Command not found

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Trying to run script but everytime I do I get teh following error message line 4: I have attempted... (5 Replies)
Discussion started by: tbear808
5 Replies

5. Shell Programming and Scripting

bash: <command nm> command not found

I created a script that I need to run from time to time, but get this error message. To get it working again I run this command from time to time: export PATH="$PATH:~/scripts" I put all my automated scripts in the /scripts directory and would like to run my scripts from any directory... (5 Replies)
Discussion started by: catalinawinemxr
5 Replies

6. Solaris

for: command not found

I have installed Solaris recently. I was doing "for file in *.c; ...." at the command prompt, it says for: command not found. I tried changing shells, but still wouldn't work. Any ideas? (7 Replies)
Discussion started by: software2007
7 Replies

7. Shell Programming and Scripting

Always getting command not found

I'm using Terminal in MAC OS X, and new to this. I don't know what happened to the path. I always get "command not found". For example, this is some of what I get: -bash: ls: command not found -bash: touch: command not found What should I do to return the terminal to normal? ... (0 Replies)
Discussion started by: Abder-Rahman
0 Replies

8. UNIX for Dummies Questions & Answers

Command not found

Hi guys, I do apologise if this question has been asked before. I am currently running Solaris 10 on a x86 architecture. Now, the problem I am having relates to the issuing of commands, for example if I am trying to find out the ipaddress of the machine I would issue the command 'ipconfig -a |... (2 Replies)
Discussion started by: BigTool4u2
2 Replies

9. UNIX for Dummies Questions & Answers

cc command not found

i installed x windows redhat linux 9.0 in my pc. but the problem is when i run cc command for c programme .....bash:cc: command not found printed ...........i set the path for bash ............with the help of PATH=$PATH....................still it is not working .........please guide me. (4 Replies)
Discussion started by: mishra_sk_in
4 Replies

10. Shell Programming and Scripting

how can i check in csh if command found or not found ?

hello all im trying to use in sun Solaris the information received from the top command now i several machines that dont have install the top program so when im running the script im geting error saying after im running this code : set MemoryInfo = `top | grep Memory` if (... (2 Replies)
Discussion started by: umen
2 Replies
Login or Register to Ask a Question