LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to Install "libguide.so" in /lib directory of RedHat Linux? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-install-libguide-so-in-lib-directory-of-redhat-linux-806523/)

jollibee 05-07-2010 12:15 PM

How to Install "libguide.so" in /lib directory of RedHat Linux?
 
Hi,

How to Install "libguide.so" in /lib directory of RedHat Linux?

I'm installing a software that is trying to look for it.

Thanks,
Jo

ajeetsinghraina 05-07-2010 12:34 PM

Look for RPM corresponding to the package.

http://rpm.pbone.net/index.php3/stat...86_64.rpm.html may install this driver for you.

knudfl 05-07-2010 12:58 PM

Post #2 ajeetsinghraina. Not a good idea.
(And it is not a driver, is a shared library.)

If you have the intel c , c++ or ifort installed,
you may already have the "libguide.so" in /opt///.
Point to it : export LD_LIBRARY_PATH=/<path-to>

'libguide.so' is used at runtime for applications
compiled with the intel (c++) compiler.

If you don't have the compiler available, better try
one rpm package version at a time. Version 8 , i386 :
http://rpm.pbone.net >> Advanced Search, Select all,
keyword = intel-icc
e.g. ftp://ftp.sunet.se/pub/databases/rel...8.0-0.i386.rpm
> intel-icc8-libs-8.0-0.i386.rpm
Please do not install it, may be too many conflicts ?
Unpack: rpm2cpio intel-icc8-libs-8.0-0.i386.rpm | cpio -idmv
and: # cp libguide.so /usr/lib/
..

jollibee 05-07-2010 01:39 PM

Knudfl,

I'm really a newbie. I just use red hat so I can run a specific software.

But you are right, the libguide.so is in the /opt directory....specifically in the /opt/<software_manufacturer>/<software_package>/lib/libguide.so

I copy this libguide.so in the /root/lib directory. Is that right?

Thanks,
Jo










Quote:

Originally Posted by knudfl (Post 3960605)
Post #2 ajeetsinghraina. Not a good idea.
(And it is not a driver, is a shared library.)

If you have the intel c , c++ or ifort installed,
you may already have the "libguide.so" in /opt///.
Point to it : export LD_LIBRARY_PATH=/<path-to>

'libguide.so' is used at runtime for applications
compiled with the intel (c++) compiler.

If you don't have the compiler available, better try
one rpm package version at a time. Version 8 , i386 :
http://rpm.pbone.net >> Advanced Search, Select all,
keyword = intel-icc
e.g. ftp://ftp.sunet.se/pub/databases/rel...8.0-0.i386.rpm
> intel-icc8-libs-8.0-0.i386.rpm
Please do not install it, may be too many conflicts ?
Unpack: rpm2cpio intel-icc8-libs-8.0-0.i386.rpm | cpio -idmv
and: # cp libguide.so /usr/lib/
..


knudfl 05-07-2010 01:53 PM

Default is /usr/lib/

But if you must, then /lib/

No need to copy. Make a link :
1) su
2) ln -s //opt//<path-to>///libguide.so /lib/

And please do not use /root// for anything. Never.
..

jollibee 05-07-2010 02:23 PM

I encountered the error report below.

I tried the command suggested by the troubleshooting browser:

chcon -t textrel_shlib_t '/opt/<software_manufacturer>/<package>/lib/libguide.so'

but it did not work. Do you have any idea how to fix it?

***********************
Summary:

SELinux is preventing StandaloneInit from loading
/opt/<software_manufacturer>/<package>/lib/libguide.so which requires text relocation.

Detailed Description:

The StandaloneInit application attempted to load
/opt/<software_manufacturer>/<package>/lib/libguide.so which requires text relocation. This is a potential security problem. Most libraries do not need this permission.Libraries are sometimes coded incorrectly and request this permission. The SELinux Memory Protection Tests (http://people.redhat.com/drepper/selinux-mem.html) web page explains how to remove this requirement. You can configure SELinux temporarily to allow /opt/<software_manufacturer>/<package>/lib/libguide.so to use relocation as a workaround, until the library is fixed. Please file a bug report (http://bugzilla.redhat.com/bugzilla/enter_bug.cgi) against this package.

Allowing Access:

If you trust /opt/<software_manufacturer>/<package>/lib/libguide.so to run correctly, you can change the file context to textrel_shlib_t. "chcon -t textrel_shlib_t '/opt/<software_manufacturer>/<package>//lib/libguide.so'" You must also change the default file context files on the system in order to preserve them even on a full relabel. "semanage fcontext -a -t textrel_shlib_t '/opt/<software_manufacturer>/<package>/lib/libguide.so'"

The following command will allow this access:

chcon -t textrel_shlib_t '/opt/<software_manufacturer>/<package>/lib/libguide.so'
***********************







Quote:

Originally Posted by jollibee (Post 3960635)
Knudfl,

I'm really a newbie. I just use red hat so I can run a specific software.

But you are right, the libguide.so is in the /opt directory....specifically in the /opt/<software_manufacturer>/<software_package>/lib/libguide.so

I copy this libguide.so in the /root/lib directory. Is that right?

Thanks,
Jo


jollibee 05-07-2010 02:34 PM

Thank you. I now have a link to libguide.so.

Ok I will not use /root/.

I post the problem affected by the lack of libguide.so.

The SELinux is not allowing StandaloneInit that's why I cannot install my software.

Thanks! Have a good one!


Quote:

Originally Posted by knudfl (Post 3960645)
Default is /usr/lib/

But if you must, then /lib/

No need to copy. Make a link :
1) su
2) ln -s //opt//<path-to>///libguide.so /lib/

And please do not use /root// for anything. Never.
..


jollibee 05-07-2010 03:20 PM

Hi Knudfl,

I'm installing the software but it gives me the same problem of the "libguide.so" again.

I tried these:

[root@localhost lib]# export LD_LIBRARY_PATH=/opt/<package>///lib

[root@localhost lib]# /opt/<package>//StandaloneInit
/opt/<package>//bin/StandaloneInit: error while loading shared libraries: /opt/<package>//lib/libguide.so: cannot restore segment prot after reloc: Permission denied


What can I do to fix it? Thanks in advance.



Quote:

Originally Posted by knudfl (Post 3960645)
Default is /usr/lib/

But if you must, then /lib/

No need to copy. Make a link :
1) su
2) ln -s //opt//<path-to>///libguide.so /lib/

And please do not use /root// for anything. Never.
..



All times are GMT -5. The time now is 07:22 PM.