LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Tags used in this thread
Popular LQ Tags

Reply
 
Thread Tools
Old 10-16-2009, 08:48 AM   #1
gregpeterson
LQ Newbie
 
Registered: Oct 2009
Posts: 3
Thanked: 0
RPM installation having NO root access


[Log in to get rid of this advertisement]
Hi, everybody.
I've got web hosting on linux red hat platform and ssh access to it.
Want to install midnight commander on it. But I've got no root access. I've followed some instructions in web to get things done: I successfully ran rpm -i command, and now when I'm runnin ./configure script the error is thrown that I've got no glib
configure: error: Test for glib failed.
Then I've downloaded glib rpm and when running rpm -i on it I've got this error:
error: can't create transaction lock on /var/lib/rpm/__db.000
So HOW CAN I INSTALL MC WITHOUT ROOT ACCESS OR WHAT SHOULD I DO WITH THAT GLIB?
Thanks everybody in advance.
windows_xp_2003 gregpeterson is offline     Reply With Quote
Old 10-16-2009, 09:18 AM   #2
rizhun
Member
 
Registered: Jun 2005
Location: England
Distribution: Ubuntu, SLES, AIX
Posts: 206
Thanked: 20
You could try Google, but I don't think you can install RPM's without root access. I think it keeps some kind of repository/database somewhere in a root-only directory that the 'rpm' command won't be able to update without the proper privileges.

You could try downloading the source code and compiling it yourself as a non-root user. You'll have to check the documentation that comes with each application to be sure you can though.

Good luck.
windows_xp_2003 rizhun is offline     Reply With Quote
Old 10-16-2009, 10:50 AM   #3
fpmurphy
Member
 
Registered: Jan 2009
Location: Florida
Distribution: Fedora, Ubuntu, Redhat, Centos
Posts: 181
Thanked: 24
It can be done but requires a number of steps:

Setup a private RPM database

mkdir -p /home/username/local/lib/rpm
rpm --initdb --root /home/username/local --dbpath /home/username/local/lib/rpm

If you do not like ~/local/lib/rpm, you can pick a different subdirectory structure.

Check for package dependancies

rpm -ivh package.rpm

If dependancies found, install the dependant RPMs before installing the package RPM.

Finally install the package

rpm --root /home/username/local --dbpath /home/username/local/lib/rpm \
--relocate /usr=/home/username/local --nodeps -ivh package.rpm

To use the package you will have to play around with LD_LIBRARY_PATH to let the
loader know where the required shared labraries are and modify your PATH to
include any required scripts and executables.
windows_vista fpmurphy is offline  
Tag This Post
Reply With Quote
Old 10-16-2009, 04:00 PM   #4
gregpeterson
LQ Newbie
 
Registered: Oct 2009
Posts: 3
Thanked: 0

Original Poster
But what should I do with this:
when I'm runnin ./configure script the error is thrown that I've got no glib
configure: error: Test for glib failed.
Then I've downloaded glib rpm and when running rpm -i on it I've got this error:
error: can't create transaction lock on /var/lib/rpm/__db.000
That is actually a problem
Thanks Again
windows_98_nt_2000 gregpeterson is offline     Reply With Quote
Old 10-16-2009, 07:36 PM   #5
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835
Thanked: 136
Quote:
Originally Posted by gregpeterson View Post
But what should I do with this:
when I'm runnin ./configure script the error is thrown that I've got no glib
configure: error: Test for glib failed.
Then I've downloaded glib rpm and when running rpm -i on it I've got this error:
error: can't create transaction lock on /var/lib/rpm/__db.000
That is actually a problem
Thanks Again
You must have root access. Period. You cannot install software without root access.

Moving on, why don't you have root access? Or do you only think you don't have root access?
linuxfedora lutusp is offline     Reply With Quote
Old 10-17-2009, 02:58 AM   #6
gregpeterson
LQ Newbie
 
Registered: Oct 2009
Posts: 3
Thanked: 0

Original Poster
I've got no root access because its only shared hosting.
Let's think deeply
1. I CAN download mc sources
2. I SHOULD HAVE ABILITY TO compile this sources
3. I CAN run mc eventually.

Yes, I cannot install rpm on the system having no root (the practice saying opposite things - I was able to run rpm -i but when running ./configure script in mc folder I've got glib error), but I definitely CAN to compile sources and run the program I've just compiled. No matter it's my own source code or just sources of mc downloaded from ftp (Am I wrong actually?).
So, I'm still seeking for the answer HOW CAN I BYPASS GLIB ERROR WHEN RUNNING ./CONFIGURE IN MC FOLDER?
Thanks everybody again.
windows_xp_2003 gregpeterson is offline     Reply With Quote
Old 10-17-2009, 04:17 AM   #7
the trooper
Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Testing AMD64
Posts: 846
Thanked: 128
Yes you can compile from source as a normal user,but you will still need root permission to run make install.
The following guide shows how to compile from source:

http://www.tuxfiles.org/linuxhelp/softinstall.html

Even if you do get the package compiled i don't see how you are going to actually install it on the machine without root permission.
linuxdebian the trooper is offline     Reply With Quote
Old 10-17-2009, 04:57 AM   #8
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835
Thanked: 136
Quote:
Originally Posted by gregpeterson View Post
I've got no root access because its only shared hosting.
Let's think deeply
1. I CAN download mc sources
2. I SHOULD HAVE ABILITY TO compile this sources
3. I CAN run mc eventually.

Yes, I cannot install rpm on the system having no root (the practice saying opposite things - I was able to run rpm -i but when running ./configure script in mc folder I've got glib error), but I definitely CAN to compile sources and run the program I've just compiled. No matter it's my own source code or just sources of mc downloaded from ftp (Am I wrong actually?).
So, I'm still seeking for the answer HOW CAN I BYPASS GLIB ERROR WHEN RUNNING ./CONFIGURE IN MC FOLDER?
Thanks everybody again.
I guess you will need to break down and install Linux locally.
linuxfedora lutusp is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
Non-root rpm package installation D-a-a-n Linux - Software 7 04-08-2009 01:52 PM
installation of rpm without root rights amessbee Linux - Newbie 2 09-21-2008 10:50 PM
rpm -ihv hp_qla2x00src-8.01.07.25-1.linux.rpm during Qlogic driver installation Dennisliu Linux - Software 5 09-10-2008 06:08 PM
Pls help to explain this syntax. "rpm -ivh bash.rpm --root /mnt/image --replacepkgs" nanosec Linux - Newbie 2 08-12-2008 02:37 PM
Disable remote root access but allow local root access-- possible? bskrakes Linux - Security 3 03-03-2008 01:15 PM


All times are GMT -5. The time now is 02:13 PM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration