/bin/sh: 1: Cc: Not Found

Hi,
I am crosscompiling u-boot for the beaglebone black and I have a problem that I don't understand.

I have installed correctly the linaro cross-compile tools and export the environment variable CC as:
export CC=/path_to_linaro_arm_cross_compiler/bin/arm-linux-gnueabihf-

And if I type in the terminal:
${CC}gcc --version

I see the linaro's compiler version, so all seems to be ok.

But, when I try to create the config file for the BBB with the command:
make ARCH=arm CROSS_COMPILE=${CC} am335x_boneblack_defconfig

It complains with the message: "/bin/sh: 1: cc: not found"

Am I missing something?


Similar Content



Installtion Error For Ns 2.27 On Ubuntu 12.04

following error shown when i tried the command:
cd ns-allinone-2.27/ &&export CC=gcc41 CXX=g++41 && ./install


============================================================
* Testing for Cygwin environment
============================================================
Cygwin not detected, proceeding with regular install.
============================================================
* Build XGraph-12.1
============================================================
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... missing
checking if malloc debugging is wanted... no
checking for gcc... gcc41
checking whether the C compiler (gcc41 ) works... no
configu error: installation or configuration problem: C compiler cannot create executables.
make: *** No targets specified and no makefile found. Stop.
Can not create xgraph; But xgraph is an optional package, continuing...
============================================================
* Build CWeb
============================================================
Making cweb
gcc -g -c -o ctangle.o ctangle.c
ctangle.w:75:12: warning: conflicting types for built-in function ‘strlen’ [enabled by default]
gcc -g -DCWEBINPUTS=\"/usr/local/lib/cweb\" -c common.c
common.w:1409:12: warning: conflicting types for built-in function ‘strlen’ [enabled by default]
common.w: In function ‘fatal’:
common.w:1176:1: warning: format not a string literal and no format arguments [-Wformat-security]
gcc -g -o ctangle ctangle.o common.o
gcc -g -c -o cweave.o cweave.c
cweave.w:79:12: warning: conflicting types for built-in function ‘strlen’ [enabled by default]
cweave.w: In function ‘print_cat’:
cweave.w:1739:1: warning: format not a string literal and no format arguments [-Wformat-security]
gcc -g -o cweave cweave.o common.o
ln: failed to create symbolic link `cweave': File exists
ln: failed to create symbolic link `ctangle': File exists
============================================================
* Build Stanford GraphBase
============================================================
Making sgb
gcc41 -g -I/usr/local/sgb/include -DDATA_DIRECTORY=\"/usr/local/sgb/data/\" -c gb_io.c
make: gcc41: Command not found
make: *** [gb_io.o] Error 127
Unable to create sgb library, but it's optional, so continuing...
============================================================
* Build GT-ITM
============================================================
sgb lib not found. gt-itm & sgb2ns could not be installed. Continuing..
============================================================
* Build zlib
============================================================
Building static library libz.a version 1.1.4 with gcc41.
Checking for unistd.h... No.
Checking for errno.h... No.
Checking for mmap support... No.
gcc41 -O -DNO_ERRNO_H -c -o example.o example.c
make: gcc41: Command not found
make: *** [example.o] Error 127
Zlib make failed, but it's optional Continue ...
============================================================
* Build tcl8.4.5
============================================================
loading cache ./config.cache
checking whether to use symlinks for manpages... no
checking compression for manpages... no
checking for gcc... gcc41
checking whether the C compiler (gcc41 ) works... no
configu error: installation or configuration problem: C compiler cannot create executables.
tcl8.3.2 configuration failed! Exiting ...
Tcl is not part of the ns project. Please see www.Scriptics.com
to see if they have a fix for your platform.



please help

Make Menuconfig: Do You Have To Run 'make' Every Time?

Hello, I'm on my first attempt at configuring a kernel. In the sunxi how-to guide, under 'Tweak config', it says to run this command:
Code:
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- menuconfig

This works fine for me (if I leave out:ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-). The editor starts up with a configuration file already loaded.

I noticed though, after exiting the configuration editor, that another command was called after I entered 'make menuconfig':
Code:
~/linux-sunxi$ make menuconfig
scripts/kconfig/mconf Kconfig

If I try running this on its own:
Code:
scripts/kconfig/mconf Kconfig

I just get an empty editor, asking which configuration file to load.

Shouldn't 'make menuconfig' need to be run only once? Is there another command to start the editor with your configuration file already loaded?

Bash: Javac: Command Not Found???

I'm new to linux but I use linux a little at school and by connecting through a shell at home. Anyways, I just installed linux a little while ago and I opened a shell and tried to compile some java code by going to the directory of the code and typing "javac someCode.java" like I do at school but it says the command is not found.

I previously had installed the java runtime environment and I just went to go and try to install the java development kit but it says it was already installed.

Is there some sort of path I need to set for the shell to look for the java compiler? Thanks in advance.

Edit:
I have added aliases to my .cshrc file at school and I just found a bashrc file and csh.cshrc file in the /etc folder. Sorry, I'm really new to all of this. Anyways, I'm geussing I have to edit the bash file? Can anyone point me to a good tutorial of scripting for these files???

GloMoSim Installation In Linux Problem

hi everybody
I'm trying to install glomosim in fedora linux
I was following the guide to glomosim steps and I faced a problem in this step:

<< Now, you have to change some environmental parameters according to the destination folder which you put the Parsec.
You can create a file called “.bashrc” inside the root or home folder (if it does not already exist), and include the
following:
export PCC_DIRECTORY=/home/parsec
PATH=$PATH:$PCC_DIRECTORY/bin
export PATH
*Your PCC_DIRECTORY should be set to the targeted destination folder which you created earlier.
Now, type:
$ pcc >>

every time I tried to type pcc
this message appears : bash: pcc: command not found
anybody help me with this please

Error: Libtool Configure Failed

Hi,
After extracting mysql-3.23.40.tar.gz
cd mysql-3.23.40/

Then
mysql-3.23.40]# ./configure --prefix=~/MySQL --with-mysqld-user=generic_user
loading cache ./config.cache
checking host system type... Invalid configuration `x86_64-unknown-linux-gnu': machine `x86_64-unknown' not recognized

checking target system type... Invalid configuration `x86_64-unknown-linux-gnu': machine `x86_64-unknown' not recognized

checking build system type... Invalid configuration `x86_64-unknown-linux-gnu': machine `x86_64-unknown' not recognized

checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... missing
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for gawk... (cached) gawk
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for c++... (cached) c++
checking whether the C++ compiler (c++ ) works... yes
checking whether the C++ compiler (c++ ) is a cross-compiler... no
checking whether we are using GNU C++... (cached) yes
checking whether c++ accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for ranlib... (cached) ranlib
checking for ld used by GCC... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking for BSD-compatible nm... (cached) /usr/bin/nm -B
checking whether ln -s works... (cached) yes
ltconfig: you must specify a host type if you use `--no-verify'
Try `ltconfig --help' for more information.
configu error: libtool configure failed

Help!!!!!!!!

.o: File Not Recognized: File Format Not Recognized When Compiling

Hello,

I am working on a board (sbc6000x with at91sam9261 micro, linux 2.6.24 to be precise) and having some fun making script i wanted to make real application.
The board is coming with a cross compilation toolchain. When trying to make a simple "hello world" executable to print on the terminal there is no problem.
I open my terminal, give the path of the compiler, cd into the folder where my .c file is and then i type :
Code:
arm-linux-gcc -o hello hello.c

Which create my executable "hello" and this one is working. But like i said, this program only played with the terminal.

The board is starting with a script calling another executable which use the lcd display, i have the source of this executable. My idea was to look at what was in the source of this application (lots of folders and files) in order to understand how it was working. I wanted to test the toolchain on the source (with the makefile) to see if i was able to generate an executable from a application with folderS/fileS but when i try to "make" it i have this error.

In my understanding this is an object file but aside from that i don't see why it would not works.

Thank you for your future answers !

Please Help! I'm Trying To Install A Program Through The Terminal

I'm sorry to ask such a simple question but every time I think I figure something out or think I'm going somewhere get stopped dead in my tracks. My friend installed linux on my computer and then moved away immediately so I have no one to help me!

I downloaded the webcam program Cheese. I found through some tutorials that I have to copy the folder to the /opt/ folder and the only way to do that is through the terminal. I found this tutorial and still can't manage to copy the folder. These are the problems I run into:

1. I don't know where to open the terminal. I've tried opening it from the extracted Cheese folder in my downloads folder and from the /opt/ folder itself. It opens up but:
2. when I type the command sudo cp -r cheese /opt/ it will ask for modernnewspeak's password. When I try to type this in nothing happens, even though it JUST let me type in the command. I pressed "enter" thinking maybe it was hiding my password and I get the message "cannot stat 'cheese'. No such file or directory"

please tell me what I'm doing wrong! I tried to follow that tutorial and look through the FAQ here but I cannot figure this out. Thank you in advance!

Make[1]: O: Command Not Found

Hi.

Running Suse 10.1 on an x86_64 machine. Trying to install a program and having some difficulty. The program is codeco 3.3. It's a format conversion program used for converting seismic waveforms such that they can be analysed by different analysis packages.

http://www.seismo.ethz.ch/products/s...3/codeco3.html

My debugging skills aren't up to much and I'm hoping someone might be able to help me out with the error. The steps involved in the installation of the package a

1. Download, gunzip and untar.

2. make config
> jp@linux:/usr/local/codeco> make config
(cd src; ./conf.csh)
found system Linux
found compiler

...this is ok, but

3. make
>jp@linux:/usr/local/codeco> make
(cd src; make)
make[1]: Entering directory `/usr/local/codeco/src'
o ../bin/codeco codecomain.f gse_io.f codecoutil.f compdecomp.f sacsub.f sac_io.f mseed_io.f css_io. today.f utmepo.f epoutm.f
make[1]: o: Command not found
make[1]: [codeco] Error 127 (ignored)
make[1]: Leaving directory `/usr/local/codeco/src'

The src code itself is written in fortran and I'm using the Intel fortran compiler version 9.0.031.

I'm at a loss as to the meaning of the above error...my knowledge of linux and software installation still not very good!

Thanks

C Compiler Cannot Create Executables

Hello everyone,

I recently installed AntiX debian Linux on an old IBM thinkpad T42. I have been trying to install some software using tar files but I kept getting the error the the C compiler cannot create executables. Can anyone help me out. Here is an example of the error. I do not know if the config.log details will help but i will post them if it will help.

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for ar... ar
checking for gcc... gcc
checking whether the C compiler works... no
configu error: in `/home/grimlock/Desktop/tor-0.2.4.27':
configu error: C compiler cannot create executables
See `config.log' for more details

Executable Not Found From /usr/local/bin

Hi,

I installed ghostscript via yum package manager. Later I wanted a newer version of ghostscript and compiled it from source. "make install" placed the gs executable file under /usr/local/bin/gs. This works if I run the command with absolute path, but if try to run gs, the shell will output

"-bash: /usr/bin/gs: No such file or directory"

if I echo the path variable it will display

/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin

If i run whereis it will give me the correct path
gs: /usr/local/bin/gs

How do I make it work so that typing "gs" will run the executable file from the /usr/local/bin/gs?

(I am using Centos 6)

Thanks.