Solved

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

Posted on 2009-04-09
8
4,166 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
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

 

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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

839 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