LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ls: error while loading shared libraries: libacl.so.1: (https://www.linuxquestions.org/questions/linux-newbie-8/ls-error-while-loading-shared-libraries-libacl-so-1-a-4175593574/)

yogsal 11-15-2016 05:28 AM

ls: error while loading shared libraries: libacl.so.1:
 
Hi,

We have RHEL 4 update 4 running on IBM Server.

Recently i upgraded Database from 9.2.0.6 to 9.2.0.8.

After the upgrade was over ( which was sucessfull ) ,i started getting errors for ls command thru out the server

[oratst@tatasons lib]$ ls
ls: error while loading shared libraries: libacl.so.1: cannot open shared object file: Input/output error

Can someone help ? This is Urgent !!

Regards

AlucardZero 11-15-2016 09:59 AM

Reboot. Check for error lights on the disks. Boot from live CD and fsck the partitions.

yogsal 11-15-2016 10:54 AM

Oracle patch
 
Thanks for reply, however since this problem has coincided with the Oracle patch application, perhaps Oracle patch removed this library file?
Can a Linux admin recover this lost file?

hazel 11-15-2016 11:30 AM

The library belongs to the acl package. You could try reinstalling acl with yum.

jpollard 11-15-2016 01:28 PM

It looks like it is time to upgrade your system. RHEL 4 has been out of maintenance for quite a while- about 4 years out of date.

AlucardZero 11-15-2016 02:56 PM

"Input/output error" means something is wrong with the filesystem/disk/hardware. The timing is probably coincidental.

yogsal 11-15-2016 08:11 PM

Commands to reinstall all package
 
Thanks hazel
Can you give me the command to reinstall all package?
All is already installed.
It seems only that particular file is missing.

Emerson 11-15-2016 08:24 PM

Did you pay attention to the I/O error? Not only your OS is outdated, your hard drive may be dying, too. I'd have a closer look at this issue before it is too late.

yogsal 11-15-2016 11:39 PM

Finding replacement for libacl.so.1
 
We have planned for an upgrade of Rhel 4 to OEL 7.

However till that time , we have to live with Rhel.

Our h/w is 8 years old , so a h/w upgrade also is in pipeline.

We have asked for linux Admin to have a look.

However apart from ls command , many other commands are working properly.

If there was a Disk error , none of the commands would have worked.

This seems more like a case of a particular library getting erased , and affecting only those commands which are using that shared lib.

I have checked that the ACL shared lib is installed in this Linux.

However the physical file is missing for sure.

So can we rectify this ? We have a production server ( where things are fine ) , and this file is present over there.

Regards,

yogsal 11-15-2016 11:40 PM

ldd command output
 
[oratst@tatasons ~]$ ldd /bin/ls
/lib/libcwait.so (0x0058f000)
librt.so.1 => /lib/tls/librt.so.1 (0x00a65000)
libacl.so.1 => not found ************************************> see here
libselinux.so.1 => /lib/libselinux.so.1 (0x003b7000)
libc.so.6 => /lib/tls/libc.so.6 (0x00123000)
libpthread.so.0 => /lib/tls/libpthread.so.0 (0x0036c000)
/lib/ld-linux.so.2 (0x00105000)

hazel 11-16-2016 01:14 AM

Quote:

Originally Posted by yogsal (Post 5631066)
Thanks hazel
Can you give me the command to reinstall all package?
All is already installed.
It seems only that particular file is missing.

Become root, then type yum remove acl followed by yum install acl

You could have found that out by yourself by reading the yum man page.

yogsal 11-16-2016 04:24 AM

Hazel ,

Thanks for the update.
Actually i am an Oracle Dba , i am not confident on Linux admin ( even if i read the manual).
It seems easy to fire those 2 commands.

however seems i can't find yum
[root@tatasons ~]# yum
-bash: yum: command not found

Regards,

jpollard 11-16-2016 05:44 AM

You might have some trouble finding repositories for RHEL 4.

I'm not sure yum was installed by default on RHEL 4 either (but it might depend on which release). I find that it was not available for 4.0, but was ported to 4.9 so it depends on how uptodate the release is as to whether a historical repository will have it.

I found this discussion on installing yum on a 4.0 saying it wasn't available until it was backported to 4.7/4.8/4.9, but still recommended using "uptodate".

http://www.linuxquestions.org/questi...nually-928888/

I looked at http://www.pramberger.at/peter/servi...ository/rhel4/ as a historical repository for RHEL 4... and didn't find yum there either.

You may have to manually search for the rpm package you want to get the "missing" file - but it should be on your install disk, or in the above archived repository (or another one).

Emerson 11-16-2016 08:31 AM

Quote:

Originally Posted by yogsal (Post 5631110)
However apart from ls command , many other commands are working properly.

If there was a Disk error , none of the commands would have worked.

Oh dear.

cesarbergara 01-17-2017 10:37 AM

Hi. żDo you erase link libacl.so.1? Sometimes libacl.so or libacl.so.0 (or so.1) is a link to the file libacl.so.1.x.x. When you update the system, may be erased the link and cant put a new one. Or the link continue and the system erase old library and dont change the link.
Another problem may be a diferent 'ls' which need so.1.x.x but the system have so.0.x.x or s.2.x.x
Take a look at the /lib and /usr/lib directories. Sometimes special libraries files were on special directories under /lib/i486 /lib/i686 or /lib/i486-linux-gnu , etc.

Have a nice day.


All times are GMT -5. The time now is 01:27 PM.