Cannot load grep libraries


 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Cannot load grep libraries
# 1  
Old 10-06-2014
Cannot load grep libraries

Hi,
When I log in to RHEL machine using root login, I get the error as "rhel -bash: /bin/grep: cannot execute binary file" and this is also shown in the attachment here. Also I cannot open the folder "/bin/egrp", using CoreFTP, even when I am logged in as a root user. Please help. Thanks in advance.
Cannot load grep libraries-error_greppng
# 2  
Old 10-06-2014
Welcome to forums,

You are doing cd and the error which you are getting is valid since /bin/egrep is not directory

Code:
akshay@nio:~$ ls /bin/egrep 
/bin/egrep

akshay@nio:~$ cd /bin/egrep 
bash: cd: /bin/egrep: Not a directory

akshay@nio:~$ file /bin/egrep 
/bin/egrep: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, BuildID[sha1]=0x860cd228e4487c8ea24cb9713555614a82996ae6, stripped

akshay@nio:~$ /bin/egrep --v
/bin/egrep (GNU grep) 2.10

---------- Post updated at 01:01 PM ---------- Previous update was at 12:57 PM ----------

its not $path its $PATH in capital letters would result something like this

Code:
akshay@nio:~$ echo $PATH
/usr/local/ferret/bin:/home/akshay/Packages_External/my_executables:/usr/local/Software/ncl/bin:/home/akshay/cTraceo-stable/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/gmt/bin:/home/akshay/android-sdk-linux/tools:/home/akshay/android-sdk-linux/platform-tools:/home/akshay/Dev/android-sdk-linux/tools:/home/akshay/Dev/android-sdk-linux/platform-tools

# 3  
Old 10-06-2014
Quote:
Originally Posted by Akshay Hegde
Welcome to forums,

You are doing cd and the error which you are getting is valid since /bin/egrep is not directory

Code:
akshay@nio:~$ ls /bin/egrep 
/bin/egrep

akshay@nio:~$ cd /bin/egrep 
bash: cd: /bin/egrep: Not a directory

akshay@nio:~$ file /bin/egrep 
/bin/egrep: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, BuildID[sha1]=0x860cd228e4487c8ea24cb9713555614a82996ae6, stripped

akshay@nio:~$ /bin/egrep --v
/bin/egrep (GNU grep) 2.10

---------- Post updated at 01:01 PM ---------- Previous update was at 12:57 PM ----------

its not $path its $PATH in capital letters would result something like this

Code:
akshay@nio:~$ echo $PATH
/usr/local/ferret/bin:/home/akshay/Packages_External/my_executables:/usr/local/Software/ncl/bin:/home/akshay/cTraceo-stable/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/gmt/bin:/home/akshay/android-sdk-linux/tools:/home/akshay/android-sdk-linux/platform-tools:/home/akshay/Dev/android-sdk-linux/tools:/home/akshay/Dev/android-sdk-linux/platform-tools

Thanks Akshay, but the error of grep occurs as soon as I log in as root (without performing any operations). Please check the new attachment and please help on this.
Cannot load grep libraries-error2png
# 4  
Old 10-06-2014
Is it possible that grep has been compiled for a different architecture?
# 5  
Old 10-06-2014
What are the permissions on /bin/grep?
# 6  
Old 10-06-2014
Quote:
Originally Posted by RudiC
Is it possible that grep has been compiled for a different architecture?
No. There are hardly any chances of this !!! Thanks !!! Any other input you have?
# 7  
Old 10-06-2014
Quote:
Originally Posted by fpmurphy
What are the permissions on /bin/grep?
THe permissions are in the attached herewith. egrep, fgrep and some other commands in /bin are appearing in red. Is this some error indication?
Cannot load grep libraries-grep-errorpng
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

VPS has load 200, httpd load no activity, netstat nothing

Hello, on my hostserver i see one VPS of mine got load of 200.00 and netstat nothing (not a single blank line on netstat command) after some time, netstat started showing connections, but i see no excessive IP connections. tail -f /var/log/httpd/access_log shows no activity /var/log/messages ;... (1 Reply)
Discussion started by: postcd
1 Replies

2. UNIX for Dummies Questions & Answers

Libraries load issue

I am trying to upgrade Autosys to r11.3.5 how ever while running the setup i am getting below error , I went through some of the Known errors , found to command the export LD_ASSUME_KERNEL parameter , which i did however didnot work . Could some pleae look into this asap. Starting all... (1 Reply)
Discussion started by: rakesh_411
1 Replies

3. Shell Programming and Scripting

Checking running process status using "grep" on multiple servers in load sharing system.

Suppose i have 3 different servers say x,y and z. Im running some process say ABC and 40 instances for the same is being created. In load sharing suppose on server x, 20 instances are running server y, 10 instances are running server z, 10 instances are running. While checking the... (1 Reply)
Discussion started by: ankitknit
1 Replies

4. Programming

I want to know some c libraries

I'm a rookie to C and i'm looking for some libraries to learn,something likes the C++ STL or Boost ,does any1 can tell me some of them?Thanks a lot:) Eric (3 Replies)
Discussion started by: homeboy
3 Replies

5. Shell Programming and Scripting

How to use two different libraries?

Hello, I need to use two different libraries like /usr/local/bin/expect and /usr/bin/ksh at the same script. Is it possible? (4 Replies)
Discussion started by: fozay
4 Replies

6. UNIX for Dummies Questions & Answers

libraries

I am slowly ploughing my way through the list of links to on-line tutorials you provided to newbies. I for one am grateful for such a comprehensive list, so first of all thank you for that. What i cannot seem to find, is information on C++ libraries: The two links on libraries in your list... (0 Replies)
Discussion started by: pil888
0 Replies

7. Shell Programming and Scripting

Need help in wrting Load Script for a Load-Resume type of load.

hi all need your help. I am wrting a script that will load data into the table. then on another load will append the data into the existing table. Regards Ankit (1 Reply)
Discussion started by: ankitgupta
1 Replies

8. IP Networking

Libraries

How is Libnet and libpcap are useful in sending a packet through DLL layer and sniff network layer? and how sinffers are used to track ip adresses provided Mac adresses? (1 Reply)
Discussion started by: netsavy
1 Replies

9. Programming

C Libraries??

I can not locate package sys/mkdev.h on HP-UX or Linux. Is it a special package or something? (9 Replies)
Discussion started by: laila63
9 Replies
Login or Register to Ask a Question