LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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

Reply
 
Search this Thread
Old 12-23-2011, 12:07 PM   #1
princebadshah
LQ Newbie
 
Registered: Dec 2011
Posts: 10

Rep: Reputation: Disabled
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 ...!!!
 
Old 12-23-2011, 12:27 PM   #2
ochienged
Member
 
Registered: Oct 2007
Location: Plano, TX
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 70

Rep: Reputation: 26
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.
 
Old 12-23-2011, 12:38 PM   #3
princebadshah
LQ Newbie
 
Registered: Dec 2011
Posts: 10

Original Poster
Rep: Reputation: Disabled
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 ....
 
Old 12-23-2011, 02:52 PM   #4
John VV
Guru
 
Registered: Aug 2005
Posts: 12,602

Rep: Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677Reputation: 1677
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
 
Old 12-24-2011, 06:20 AM   #5
princebadshah
LQ Newbie
 
Registered: Dec 2011
Posts: 10

Original Poster
Rep: Reputation: Disabled
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
 
Old 12-24-2011, 06:24 AM   #6
princebadshah
LQ Newbie
 
Registered: Dec 2011
Posts: 10

Original Poster
Rep: Reputation: Disabled
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.
 
Old 01-04-2012, 08:36 AM   #7
ochienged
Member
 
Registered: Oct 2007
Location: Plano, TX
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 70

Rep: Reputation: 26
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,
Quote:
exec bash
if you set bash as you default shell. Or simply log out and sign in again.
 
Old 01-04-2012, 11:17 PM   #8
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,225

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
Try
Code:
cd /opt/nios2/bin/
ls -l |grep nios2-linux-uclibc-gcc

file nios2-linux-uclibc-gcc
 
  


Reply

Tags
link, references


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
chroot:cannot change root directory to: No such file directory janakiramulu Linux From Scratch 5 04-23-2011 01:00 AM
Get first file of directory then copy to other directory andd rename the file Faye Linux - Software 4 01-30-2011 09:16 AM
mkdir : cannot create directory : no such file or directory patcheezy Linux - Newbie 6 05-13-2009 11:26 AM
Copying a single file into each directory of a directory tree mlapl1 Linux - Newbie 2 06-27-2007 10:18 PM
How to protect a file/directory in your home login directory (RH Linux) jitsenho Linux - Security 9 07-03-2006 11:08 PM


All times are GMT -5. The time now is 05:34 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration