Instalation process dont get GCC-4.5.7
I am trying to make and make install a program but it is giving me the following eror:
[lucas@lucas sparsePregraph]$ make pregraph_sparse_63mer.v1.0.3 cleaning done. /bin/sh: line 1: /opt/blc/gcc-4.5.0/bin/gcc: Arquivo ou diretório não encontrado Error in command: /opt/blc/gcc-4.5.0/bin/gcc -c -O4 -fomit-frame-pointer -D_63MER_ -m64 -I./inc build_graph.cpp /bin/sh: line 1: /opt/blc/gcc-4.5.0/bin/gcc: Arquivo ou diretório não encontrado Error in command: /opt/blc/gcc-4.5.0/bin/gcc -c -O4 -fomit-frame-pointer -D_63MER_ -m64 -I./inc build_edge.cpp /bin/sh: line 1: /opt/blc/gcc-4.5.0/bin/gcc: Arquivo ou diretório não encontrado Error in command: /opt/blc/gcc-4.5.0/bin/gcc -c -O4 -fomit-frame-pointer -D_63MER_ -m64 -I./inc multi_threads.cpp /bin/sh: line 1: /opt/blc/gcc-4.5.0/bin/gcc: Arquivo ou diretório não encontrado Error in command: /opt/blc/gcc-4.5.0/bin/gcc -c -O4 -fomit-frame-pointer -D_63MER_ -m64 -I./inc build_preArc.cpp /bin/sh: line 1: /opt/blc/gcc-4.5.0/bin/gcc: Arquivo ou diretório não encontrado Error in command: /opt/blc/gcc-4.5.0/bin/gcc -c -O4 -fomit-frame-pointer -D_63MER_ -m64 -I./inc pregraph_sparse.cpp /bin/sh: line 1: /opt/blc/gcc-4.5.0/bin/gcc: Arquivo ou diretório não encontrado Error in command: /opt/blc/gcc-4.5.0/bin/gcc -c -O4 -fomit-frame-pointer -D_63MER_ -m64 -I./inc io_func.cpp /bin/sh: line 1: /opt/blc/gcc-4.5.0/bin/gcc: Arquivo ou diretório não encontrado Error in command: /opt/blc/gcc-4.5.0/bin/gcc -c -O4 -fomit-frame-pointer -D_63MER_ -m64 -I./inc global.cpp /bin/sh: line 1: /opt/blc/gcc-4.5.0/bin/gcc: Arquivo ou diretório não encontrado Error in command: /opt/blc/gcc-4.5.0/bin/gcc -c -O4 -fomit-frame-pointer -D_63MER_ -m64 -I./inc convert_soapdenovo.cpp make: /opt/blc/gcc-4.5.0/bin/gcc: Comando não encontrado make: ** [pregraph_sparse] Erro 127 I already have the GCC-4.7.2 installed, which can also work. [lucas@lucas bin]$ ls c++ g++ gcc-ranlib gpg-error-config libgcrypt-config x86_64-unknown-linux-gnu-g++ x86_64-unknown-linux-gnu-gcc-nm cc gcc gcov hmac256 pth-config x86_64-unknown-linux-gnu-gcc x86_64-unknown-linux-gnu-gcc-ranlib cpp gcc-ar gfortran ksba-config r223 x86_64-unknown-linux-gnu-gcc-4.7.2 x86_64-unknown-linux-gnu-gfortran dumpsexp gcc-nm gpg-error libassuan-config x86_64-unknown-linux-gnu-c++ x86_64-unknown-linux-gnu-gcc-ar Can I indicate the path to the program be installed? How can I do that? Is there any other way to make it work? Thanks |
Does compiling other programs work? It seems that make is looking for gcc in the wrong place.
What is the output of Code:
which gcc Code:
CC=[something] Also, I don't know what program you are trying to compile, so maybe it is looking for a specific compiler in a specific place for a reason. |
which gcc
[lucas@lucas ~]$ which gcc
/usr/bin/gcc [lucas@lucas ~]$ The program I am trying to install needs GCC-4.4.0 or superior, Ive just installed GCC-4.7.2. |
it looks like that makefile is calling 4.5
or the symbolic link "gcc" and "CC" are pointing to the wrong version please post the output of Code:
gcc -v --- all these might be links to the real version -- c++ g++ cc gcc gcov cpp also what operating system is this and it's version you can have many different versions of gcc installed i have gcc 3.4, gcc 4.1 gcc 4.3 and gcc 4.7 yes i am lazy and sometimes it is just easier to use an older version of gcc than hack the source code |
the output of gcc -v
[lucas@lucas ~]$ gcc -v
Using built-in specs. Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux Thread model: posix gcc version 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC) I also have installed GCC-4.7.2 at /home/lucas/gnu/bin, anthis GCC should work. I am using CentOS 6.2 |
Quote:
please use YUM it will install ALL needed dependencies and install it to the correct location also CentOS 6.2 is unsupported !!! please upgrade to the only 6 version that is supported CentOS 6.3 Code:
su - then Code:
su - you also need a LOT of other things besides just gcc you NEED the whole suite of tools that gcc needs to work Code:
su - |
All times are GMT -5. The time now is 03:29 PM. |