LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-07-2010, 01:15 PM   #1
jollibee
Member
 
Registered: Jul 2009
Distribution: Red Hat EL 5
Posts: 34

Rep: Reputation: 15
Question 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
 
Old 05-07-2010, 01:34 PM   #2
ajeetsinghraina
Member
 
Registered: May 2010
Location: India
Distribution: Ubuntu 7.04/8.04/8.10/10.04, RHEL 6, OpenSUSE,Mandriva,Fedora, CentOS, XandrOS, Slackware, OpenSolar
Posts: 155

Rep: Reputation: 55
Look for RPM corresponding to the package.

http://rpm.pbone.net/index.php3/stat...86_64.rpm.html may install this driver for you.
 
Old 05-07-2010, 01:58 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,735

Rep: Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317
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/
..

Last edited by knudfl; 05-07-2010 at 02:06 PM.
 
Old 05-07-2010, 02:39 PM   #4
jollibee
Member
 
Registered: Jul 2009
Distribution: Red Hat EL 5
Posts: 34

Original Poster
Rep: Reputation: 15
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 View Post
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/
..
 
Old 05-07-2010, 02:53 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,735

Rep: Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317
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.
..
 
Old 05-07-2010, 03:23 PM   #6
jollibee
Member
 
Registered: Jul 2009
Distribution: Red Hat EL 5
Posts: 34

Original Poster
Rep: Reputation: 15
Question

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 View Post
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
 
Old 05-07-2010, 03:34 PM   #7
jollibee
Member
 
Registered: Jul 2009
Distribution: Red Hat EL 5
Posts: 34

Original Poster
Rep: Reputation: 15
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 View Post
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.
..
 
Old 05-07-2010, 04:20 PM   #8
jollibee
Member
 
Registered: Jul 2009
Distribution: Red Hat EL 5
Posts: 34

Original Poster
Rep: Reputation: 15
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 View Post
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.
..
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"Multiple definition of" and "undefined reference to" in QT Creator with QJson lib echelon89 Programming 1 05-01-2009 07:48 AM
Can't locate object method "splitpath" via package "PACK001" at /usr/lib/perl5/5.8.8/ sajigeorge Linux - Software 1 01-11-2009 07:33 AM
What does "Directory "/usr/src/linux" doesn't appear to contain kernel source." mean? jtp51 Linux - General 4 06-11-2007 01:22 AM
"Locking in" Glibc (replace prob /lib/ld-linux.so.2 with /tools/lib/ld-linux.so.2 irfanali Linux From Scratch 11 06-29-2006 11:19 AM
Compromised? Files "/usr/lib.hwm", "/usr/lib.pwd", "/usr/lib.pwi" Klaus Pforte Linux - Security 4 09-29-2004 12:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration