LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   RPM installation having NO root access (https://www.linuxquestions.org/questions/linux-newbie-8/rpm-installation-having-no-root-access-762363/)

gregpeterson 10-16-2009 07:48 AM

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.

rizhun 10-16-2009 08:18 AM

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.

fpmurphy 10-16-2009 09:50 AM

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.

gregpeterson 10-16-2009 03:00 PM

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

lutusp 10-16-2009 06:36 PM

Quote:

Originally Posted by gregpeterson (Post 3722054)
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?

gregpeterson 10-17-2009 01:58 AM

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.

the trooper 10-17-2009 03:17 AM

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.

lutusp 10-17-2009 03:57 AM

Quote:

Originally Posted by gregpeterson (Post 3722467)
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.


All times are GMT -5. The time now is 09:40 AM.