LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-23-2006, 04:37 PM   #1
signmeuptoo
Member
 
Registered: Jul 2005
Location: Ithaca, NY
Posts: 82

Rep: Reputation: 16
Why this error when installing program?


Why do I get this error when I attempt to install BNR2 into SLED?:

bucky@linux-ws0f:~/Downloads/OnlineCommunicate> sh BNR2beta-0.14.7.run
Verifying archive integrity... All good.
Uncompressing BNR2 Installation Setup................................................................................
./kdesu: error while loading shared libraries: libexpat.so.0: cannot open shared object file: No such file or directory

I can install when in root, but not when in normal user, but I don't want to install as root because then I have to run it as root, which is a bad idea. Why would the install work when in root but not when in normal user mode?

I am still learning, I am really green, I am currently trying to figure out how to use chmod and symlinks, for instance, but the man and info pages don't help enough, I don't understand some of the terminology. Is this a symlink issue or something?
 
Old 08-23-2006, 04:46 PM   #2
pda_h4x0r
Member
 
Registered: Feb 2006
Location: somewhere in cyberspace
Distribution: Debian, Familiar
Posts: 380

Rep: Reputation: 30
Use 'sudo.' The program seems to be asking for root privilages anyway (kdesu is KDE's QT root password-prompter, in case you didn't know).
 
Old 08-23-2006, 05:05 PM   #3
zhangmaike
Member
 
Registered: Oct 2004
Distribution: Slackware
Posts: 376

Rep: Reputation: 31
Because you're not running it as root, it's executing its own copy of kdesu (notice the ./). kdesu is apparently linked to libexpat (I confirm this is also true on my system - ldd reports kdesu is linked to libexpat).

To end this error, run it as root with sudo or su or install libexpat. I'd be somewhat suspicious about any program which includes its own copy of kdesu or any su-type utility, though.
 
Old 08-23-2006, 05:13 PM   #4
signmeuptoo
Member
 
Registered: Jul 2005
Location: Ithaca, NY
Posts: 82

Original Poster
Rep: Reputation: 16
Ok, thanks for the really quick responses, guys. Thing is, if I install as root, then the program will only run as root, even if I change the owner of the executable and make it executable by me, the user.

I think I understand symlinks after some further reading, so I am wondering where to link to, do I symlink libexpat.so.0 to ./kde?

This is the error I get when trying to run the program from normal after a root user install:

cannot create /home/bucky/BNR2/BNR2.ini

What gives?
 
Old 08-23-2006, 05:23 PM   #5
signmeuptoo
Member
 
Registered: Jul 2005
Location: Ithaca, NY
Posts: 82

Original Poster
Rep: Reputation: 16
Also, it won't work with sudo, just with su (being in root).
 
Old 08-23-2006, 05:29 PM   #6
signmeuptoo
Member
 
Registered: Jul 2005
Location: Ithaca, NY
Posts: 82

Original Poster
Rep: Reputation: 16
I GOT IT!!! I went into superuser konqueror mode, and changed the owner to me, the user, I changed the home directory to the program and everything below it, and it works!

There must be some kind of quirk where it won't install right in SLED, whereas it installs just fine in SuSE 10.1, as normal user...
 
Old 08-23-2006, 06:05 PM   #7
zhangmaike
Member
 
Registered: Oct 2004
Distribution: Slackware
Posts: 376

Rep: Reputation: 31
Quote:
Originally Posted by signmeuptoo
I think I understand symlinks after some further reading, so I am wondering where to link to, do I symlink libexpat.so.0 to ./kde?
That's a different kind of "link". When you compile a program, and that program uses some external library (like libexpat) that program is said to be "linked" to that library. In this case, kdesu is dynamically linked to libexpat: kdesu will not run without libexpat, because some part of kdesu requires funcionality provided by libexpat.

The error involving libexpat can only be solved by installing libexpat.

Quote:
There must be some kind of quirk where it won't install right in SLED, whereas it installs just fine in SuSE 10.1, as normal user...
I'm guessing that the "quirk" is that SLED doesn't have libexpat installed.

Last edited by zhangmaike; 08-23-2006 at 06:06 PM.
 
Old 08-23-2006, 06:47 PM   #8
signmeuptoo
Member
 
Registered: Jul 2005
Location: Ithaca, NY
Posts: 82

Original Poster
Rep: Reputation: 16
No, it IS installed, look above: I got this working by going to the BNR2 folder in ~ and changing the owner and permissions for the entire thing, the entire path down from that folder.

I know libexpat is in, becuase I tried making a symlink where I guessed I needed to, so I have seen the files. It must be something else: My guess is that it could be a 64 bit version issue, because stuff gets stored in a different place...
 
  


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
gconf error installing python program on mandriva Crazypiglady Linux - Software 2 08-09-2005 09:30 AM
Installing program help bruce205 Linux - Newbie 1 11-14-2004 04:34 PM
FC1 Error installing a program... Help! Kevin1290X KTPX Linux - Newbie 2 09-20-2004 05:21 PM
Error installing a program belkins Linux - Newbie 3 06-18-2004 06:55 PM
Problems installing program: error: Qt (>= Qt 3.0.3) (headers and libraries) Anjin Mandriva 4 04-26-2004 10:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:55 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
Open Source Consulting | Domain Registration