Solved

tar -xf tar: fatal: libintl.so.8 error

Posted on 2009-04-09
8
4,178 Views
Last Modified: 2013-12-27
Hi Experts,

When I try to use the tar -xf pcns223sol.tar, I receive the following:

tar pcns223sol.tar
ld.so.1: tar: fatal: libintl.so.8: open failed: No such file or directory
Killed

I just ran this same file on another test server without issue.

Any ideas on what might be causing this tar error to occur?

Thanks,
byd2k
0
Comment
Question by:byd2k
  • 4
  • 3
8 Comments
 
LVL 22

Expert Comment

by:blu
ID: 24110602
That is odd. Do "which tar", the normal tar on Solaris doesn't link with libintl.so.8. Are you using gnu tar or something else by mistake?
0
 

Author Comment

by:byd2k
ID: 24110619
I or the contractor probably installed GNU at one point in time hoping it would correct a similar issue a long time ago.  Is there a way to not use GNU tar and use the default version?

Thanks again,
byd2k

0
 
LVL 22

Accepted Solution

by:
blu earned 200 total points
ID: 24110726
Sure. The short term solution is to simply call tar by it's full path:

/usr/bin/tar -xf pcns223sol.tar

But you could still do the "which tar" to find out where it is installed and adjust your path.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:byd2k
ID: 24111166
Great that worked!  

The application looks like it actually wants to use Tar to extract additional data.

How do you uninstall or adjust the existing path /usr/local/bin/tar to /usr/bin/tar permanently?

Thanks,
byd2k

0
 
LVL 40

Assisted Solution

by:omarfarid
omarfarid earned 50 total points
ID: 24111819
look at the PATH env variable, which contains dir names to look for  commands

echo $PATH
PATH=/usr/bin:path1:path2
0
 
LVL 22

Assisted Solution

by:blu
blu earned 200 total points
ID: 24112570
Somewhere on you path is certainly /usr/local/bin. Also, there is /usr/bin. Your choices are to either uninstall the /usr/local/bin/tar file or swtich them around on your PATH variable, or always call tar as /usr/bin/tar.
The problem with the first is that somebody may be using /usr/local/bin/tar. The problem with the second is that you may find that there are other executables in /usr/local/bin that you want to take precedence over what is in /usr/bin, and the last one is a pain. You have to figure out which is best.

If you do decide to reverse the order on the PATH, look in a file called .login, or .profile or .cshrc (depending on you shell) in your home directory. That is most likely where /usr/local/bin is added to the path.
0
 

Author Comment

by:byd2k
ID: 24130408
Thank you for your help.

I decided to create another user account in which the default tar version is stored under /usr/bin/tar.  I then used sudo for admin rights versus running root to install an updated APC network shutdown application.

Thanks to all of your for your help,
byd2k
0
 

Author Closing Comment

by:byd2k
ID: 31568684
Thank you all for your help.

I ended up creating a new user.  I used that user's default profile which used /usr/local/bin/tar file.  I proceeded to install the APC application which in turn used the default tar program to install Java.

I'm going to leave the path alone abased on blu's last post.

-byd2k
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question