Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
12-23-2011, 12:07 PM
#1
LQ Newbie
Registered: Dec 2011
Posts: 10
Rep:
No Such file or directory
Hello I just stuck with very naive error ..!!!
Here it is
root@ubuntu:/home/ramzan# nios2-linux-uclibc-g (PRESSING TAB)
nios2-linux-uclibc-g++
nios2-linux-uclibc-gcc
nios2-linux-uclibc-gcc-3.4.6
nios2-linux-uclibc-gccbug
nios2-linux-uclibc-gcov
nios2-linux-uclibc-gdb
nios2-linux-uclibc-gdb66
nios2-linux-uclibc-gdbtui
nios2-linux-uclibc-gprof
root@ubuntu:/home/ramzan# nios2-linux-uclibc-gcc -v
bash: /opt/nios2/bin/nios2-linux-uclibc-gcc: No such file or directory
root@ubuntu:/home/ramzan# whereis nios2-linux-uclibc-gcc
nios2-linux-uclibc-gcc: /opt/nios2/bin/nios2-linux-uclibc-gcc
Thanks in advance ...!!!
12-23-2011, 12:27 PM
#2
Member
Registered: Oct 2007
Location: Plano, TX
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 70
Rep:
First, you need to confirm that the file exists in your system through one of the two ways below.
Quote:
find / -name nios2-linux-uclibc-gcc
Alternatively,
Quote:
locate nios2-linux-uclibc-gcc
Should it be available, add it to your environment variables.
12-23-2011, 12:38 PM
#3
LQ Newbie
Registered: Dec 2011
Posts: 10
Original Poster
Rep:
It is in
/opt/nios2/bin
i edited /root/.bashrc with this
PATH=$PATH:/opt/nios2/bin
but still same problem even i login and logout ....
12-23-2011, 02:52 PM
#4
Guru
Registered: Aug 2005
Location: Ann Arbor Mi.
Distribution: OpenSUSE 12.1 & Scientfic Linux 6.1
Posts: 7,292
you do not edit the /root account files because you DO NOT LOGIN AS ROOT
you edit the SYSTEM files ( or the normal user )
add that change to /ect/profile or to /etc/bashrc.local
12-24-2011, 06:20 AM
#5
LQ Newbie
Registered: Dec 2011
Posts: 10
Original Poster
Rep:
root@ubuntu:/home/ramzan/nios2-linux# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/nios2/bin
So the directory is in the root path. then why it is not finding the compiler
12-24-2011, 06:24 AM
#6
LQ Newbie
Registered: Dec 2011
Posts: 10
Original Poster
Rep:
root@ubuntu:/home/ramzan/nios2-linux# /opt/nios2/bin/nios2-linux-uclibc-gcc -v
bash: /opt/nios2/bin/nios2-linux-uclibc-gcc: No such file or directory
root@ubuntu:/home/ramzan/nios2-linux# ls /opt/nios2/bin/
nios2-linux-addr2line nios2-linux-objcopy nios2-linux-uclibc-gccbug
nios2-linux-ar nios2-linux-objdump nios2-linux-uclibc-gcov
nios2-linux-as nios2-linux-ranlib nios2-linux-uclibc-gdb
nios2-linux-c++ nios2-linux-readelf nios2-linux-uclibc-gdb66
nios2-linux-cc nios2-linux-size nios2-linux-uclibc-gdbtui
nios2-linux-c++filt nios2-linux-strings nios2-linux-uclibc-gprof
nios2-linux-cpp nios2-linux-strip nios2-linux-uclibc-insight
nios2-linux-elf2flt nios2-linux-uclibc-addr2line nios2-linux-uclibc-ld
nios2-linux-flthdr nios2-linux-uclibc-ar nios2-linux-uclibc-ld.real
nios2-linux-g++ nios2-linux-uclibc-as nios2-linux-uclibc-nm
nios2-linux-gcc nios2-linux-uclibc-c++ nios2-linux-uclibc-objcopy
nios2-linux-gcc-3.4.6 nios2-linux-uclibc-cc nios2-linux-uclibc-objdump
nios2-linux-gccbug nios2-linux-uclibc-c++filt nios2-linux-uclibc-ranlib
nios2-linux-gcov nios2-linux-uclibc-cpp nios2-linux-uclibc-readelf
nios2-linux-gdb nios2-linux-uclibc-elf2flt nios2-linux-uclibc-size
nios2-linux-gprof nios2-linux-uclibc-flthdr nios2-linux-uclibc-strings
nios2-linux-ld nios2-linux-uclibc-g++ nios2-linux-uclibc-strip
nios2-linux-ld.real nios2-linux-uclibc-gcc tclsh8.4
nios2-linux-nm nios2-linux-uclibc-gcc-3.4.6 wish8.4
Last edited by princebadshah; 12-24-2011 at 06:26 AM .
01-04-2012, 08:36 AM
#7
Member
Registered: Oct 2007
Location: Plano, TX
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 70
Rep:
Given that the bashrc(~/.bashrc, /etc/profile, etc) files are read on login, you may have to manually get the OS to re-read them by executing for instance,
if you set bash as you default shell. Or simply log out and sign in again.
01-04-2012, 11:17 PM
#8
Guru
Registered: Aug 2004
Location: Brisbane
Distribution: Centos 6.2, Centos 5.8
Posts: 11,740
Try
Code:
cd /opt/nios2/bin/
ls -l |grep nios2-linux-uclibc-gcc
file nios2-linux-uclibc-gcc
Thread Tools
Search this Thread
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
All times are GMT -5. The time now is 10:51 AM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News