[SOLVED] GCC won’t work

Home Page Forums Network Management ZeroShell [SOLVED] GCC won’t work

This topic contains 1 reply, has 0 voices, and was last updated by  Ddall 9 years ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #42420

    Ddall
    Member

    Hello!

    I’m currently trying to get GCC to work on my Zeroshell box.

    I have unlocked/moved the /usr and /sbin directories on /Database/rootfs/, and followed the procedure in this document http://comm7777.t35.com/developer.kit.pdf

    But when I try to compile, ./configure stops and returns this:

    Target OS "linux-gnulibc1" OK
    checking for style of include used by make... GNU
    checking for gcc... gcc
    checking for C compiler default output file name... configure: error: C compiler cannot create executables
    See `config.log' for more details.

    Here’s the content of my /etc/profile (I keep gcc and the librairies on /Database/mybin/)

    PS1="u@h W> "
    export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/ssl/bin:$PATH"
    alias rm="rm -i"
    alias cp="cp -i"
    alias mv="mv -i"
    alias ll="ls -l"
    cd
    alias la="ls -la"
    PATH="/Database/mybin/jdk1.6.0_20/bin:/Database/mybin/gcc4.3.2/bin:$PATH"
    JAVA_HOME="/Database/mybin/jdk1.6.0_20/bin:$JAVA_HOME"
    PATH="/Database/mybin/gcc4.3.2/bin:$PATH"

    The alias doesn’t seem to be the problem

    root@serveur1 myadmin> echo $PATH
    /Database/mybin/gcc4.3.2/bin:/Database/mybin/jdk1.6.0_20/bin:/Database/mybin/gcc4.3.2/bin:/usr/local/bin:/usr/local/sbin:/usr/local/ssl/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin

    Can you tell me what have I done wrong?
    Thanks

    #50362

    Ddall
    Member

    Solved!

    There is an error in the tutorial:

    The librairies have to go in the /usr directory (not /Database)

    #50363

    ppalias
    Member

    Be careful cause “/usr” will not be saved after a restart, so you have to copy the to “/Database” and then with a preboot script link copy them to “/usr”

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.