LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 10-16-2009, 07:48 AM   #1
gregpeterson
LQ Newbie
 
Registered: Oct 2009
Posts: 3

Rep: Reputation: 0
RPM installation having NO root access


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.
 
Old 10-16-2009, 08:18 AM   #2
rizhun
Member
 
Registered: Jun 2005
Location: England
Distribution: Ubuntu, SLES, AIX
Posts: 268

Rep: Reputation: 47
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.
 
Old 10-16-2009, 09:50 AM   #3
fpmurphy
Member
 
Registered: Jan 2009
Location: /dev/ph
Distribution: Fedora, Ubuntu, Redhat, Centos
Posts: 299

Rep: Reputation: 62
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.
 
1 members found this post helpful.
Old 10-16-2009, 03:00 PM   #4
gregpeterson
LQ Newbie
 
Registered: Oct 2009
Posts: 3

Original Poster
Rep: Reputation: 0
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
 
Old 10-16-2009, 06:36 PM   #5
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
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?
 
Old 10-17-2009, 01:58 AM   #6
gregpeterson
LQ Newbie
 
Registered: Oct 2009
Posts: 3

Original Poster
Rep: Reputation: 0
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.
 
Old 10-17-2009, 03:17 AM   #7
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Jessie Amd64
Posts: 1,477

Rep: Reputation: Disabled
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.
 
Old 10-17-2009, 03:57 AM   #8
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

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


Reply

Tags
rpm


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


All times are GMT -5. The time now is 03:23 AM.

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