Solved

Bash problem on AIX 6.1

Posted on 2010-08-18
4
4,230 Views
Last Modified: 2013-12-21
I installed bash 4.0 on an updated to the latest SP & TL new AIX 6.1 machine.
but when a local user try to run bash he get this:
exec(): 0509-036 Cannot load program bash because of the following errors:
        0509-022 Cannot load module /opt/pware/lib/libintl.a(libintl.so.8).
        0509-150   Dependent module /usr/lib/libiconv.a(libiconv.so.2) could not be loaded.
        0509-152   Member libiconv.so.2 is not found in archive
        0509-022 Cannot load module bash.
        0509-150   Dependent module /opt/pware/lib/libintl.a(libintl.so.8) could not be loaded.
        0509-022 Cannot load module .


The initial shell for the user is ksh, and it is imperative that it will stay this way.
I created another user for test with the same shell (ksh) and the same group membership, but this new user can run bash without any problems.
Any idea?

Thanks,

Tal
0
Comment
Question by:questil
  • 2
4 Comments
 
LVL 2

Accepted Solution

by:
uscshaggy earned 500 total points
ID: 33472311
Check if those libraries exist in those paths and check that the user has permission to read those files.  If not in the path, you just need to update the search path, which I believe is the LD_LIBRARY_PATH env variable.  For permissions, be sure to check for ACLs, not just base permissions, using aclget command.
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 33472606
Hi,
the standard iconv library which comes with AIX (bos.rte.iconv) is an "IBM style" shared library and doesn't contain members such as "libiconv.so.2", but only "shr4_o" and "shr4_64.o".
To get a "GNU-style" library you should install the rpm found e.g. here - http://www.perzl.org/aix/index.php?n=Main.Libiconv.
Take care to have /opt/freeware/lib in your LIBPATH. Maybe you have the above library already and it's only the LIBPATH which is missing/incomplete?
wmp
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 33472673
... another possibility - use /usr/lib/libintl.a (actually a link to /opt/freeware/lib/libintl.a) instead of /opt/pware/lib/libintl.a which means that you should not have /opt/pware/lib in your LIBPATH.
If you don't have /usr/lib/libintl.a or if it's the wrong version (re)install gettext (which libintl.a is part of) e.g. from here - http://www.perzl.org/aix/index.php?n=Main.Gettext
Finally, one more thing - use bash from http://www.perzl.org/aix/index.php?n=Main.Bash instead of the Pware version. It works with the "AIX-style"  /usr/lib/libiconv.a without a problem.
0
 

Author Comment

by:questil
ID: 33472699
Thanks uscshaggy, the was only the path, so I added to ~.profile this line:
export LIBPATH=/opt/pware/lib:${LIBPATH}

Thanks!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

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…
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
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…

707 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

13 Experts available now in Live!

Get 1:1 Help Now