Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

pre build binary chain problem

hello all

Im trying to install the nios2gcc to my laptop with has Ubuntu Linux on it

my laptop is AMD Turion X2

I followed the instructions on the wiki and changed the PATH variables to point to the folder /opt/nios2/bin

when I echo PATH thats what I get:

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/nios2/bin:/opt/nios2/bin

but when i type the command

$ nios2-linux-uclibc-gcc -v

get the following line:

bash: /opt/nios2/bin/nios2-linux-uclibc-gcc: no such file or directory

can please somebody tell me what im doing wrong , im sure may be im missing something , i new to the uclinux and nios2 tools

thanks

ehab

7 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    yes it is there , it is there and even I go inside /opt/nios2/bin

    and still when i make nios2-linux-uclibe-gcc -v

    still same thing
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi everyone,

    I've got the same problem. Is there any solution?

    My system is is Ubuntu as well and I'm running it in a Virtual Box as guest.

    I'm pretty confuesd since the files are all in the place there should be and can be listed with ls etc.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    What are the permissions on the executable "nios2-linux-uclibc-gcc"? Do an "ls -altr" in the "/opt/nios2/bin" directory. If you don't see "x" as one of the permission bits, execution isn't possible, even if it's a valid executable file. To change it, type "chmod +x nios2-linux-uclibc-gcc", though I think the fact that it's not executable indicates that something was done incorrectly during installation.

    Regards,

    --slacker
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    The permissions are as they should be. ls -altr shows the data is executable.

    The Problem is not only limited to the nios2-linux-uclibe-gcc, all binaries do not work an bring the message "command not found".

    The $PATH is also as it should be. Using command line completition brings the demanded bins. But still I get "command not found"-error.

    I start to believe it is either a problem of the VitualBox or the distribution itself. I'm using Ubuntu 9.10.

    As far as I am concerned I'm can't immagine a reason for this behaviour.

    Regards.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    What do "file nios2-linux-uclibc-gcc" and/or "ldd nios2-linux-uclibc-gcc" return?

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi, I know the solution, you have to install the 32-bit libraries in order to run the bin toolchain :

    sudo apt-get install ia32-libs

    Cheers