Solved

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

Posted on 2009-04-09
8
4,120 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
 

Author Comment

by:byd2k
Comment Utility
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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 40

Assisted Solution

by:omarfarid
omarfarid earned 50 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
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 get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

772 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now