Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12693 Discussions

pre build binary chain problem

Altera_Forum
Honored Contributor II
1,382 Views

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 

 

 

0 Kudos
7 Replies
Altera_Forum
Honored Contributor II
626 Views

Is it actually there? 

 

ls /opt/nios2/bin
0 Kudos
Altera_Forum
Honored Contributor II
626 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
626 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
626 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
626 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
626 Views

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

0 Kudos
Altera_Forum
Honored Contributor II
626 Views

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
0 Kudos
Reply