LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 02-13-2002, 11:12 PM   #1
notsoevil
Member
 
Registered: May 2001
Location: Louisville, Kentucky, USA
Distribution: RedHat ES
Posts: 120

Rep: Reputation: 15
cat


I am at the point where I am 'configuring essential software' per Chapter 6.

The setup of the vimrc file fails, because using cat says:

bash: /usr/bin/cat: No such file or directory

Back on Textutils* installation, cat was moved to /bin

If I explicitly use /bin/cat instead of just cat, all is well.

/bin is in my PATH

Most other programs (ping,less,tar) from /bin work fine without explicitly calling the full path.

I can solve this in the interim with a symlink in /usr/bin ..

.. but why is this happening?
 
Old 02-14-2002, 03:37 AM   #2
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
The location of cat is hardcoded into bash. So your path won't matter. That's why you should install textutils before you install bash so it can find cat in the right location. After installing text utils make sure there are no symbolic links in /usr/bin to cat and try rebuilding bash to see if that helps.
 
Old 02-14-2002, 08:06 AM   #3
notsoevil
Member
 
Registered: May 2001
Location: Louisville, Kentucky, USA
Distribution: RedHat ES
Posts: 120

Original Poster
Rep: Reputation: 15
Did I miss a step in the book, compiling bash for a third time?
 
Old 02-14-2002, 10:16 AM   #4
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
Quote:
Originally posted by notsoevil
Did I miss a step in the book, compiling bash for a third time?
Honestly, I don't think cat is built-into bash. The thing you may be suffering from is a hashed value of bash's awareness where cat is expected.

Run this: type cat

It may output this:
cat is hashed (/usr/bin/cat)

If that's the case, run: hash -r

that'll remove the hash table and start looking for things in $PATH again.
 
  


Reply


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
less, cat, sed or what ebasi Linux - Software 8 07-28-2004 03:26 AM
My Cat unimaginative General 71 02-18-2004 01:08 PM
Cat ... Beuzekom Linux - Newbie 4 01-19-2004 05:32 PM
Any cat gurus in here? deepsix Linux - General 14 08-28-2003 09:41 AM
regarding cat gui10 Linux - Security 6 12-07-2001 08:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 08:32 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration