Can anyone please tell what are the steps to installing libxml2 on a server without root privileges? In a manner so it can be seen by other packages? I have installed it but do not know what is the correct location for it and what variable should be set to make it visible. Please help! I have to install a large number of dependencies and I am stuck at the first step!
-
If you can stomach installing all dependencies from source, this answer can help: unix.stackexchange.com/a/73657/34796drs– drs2014-05-23 00:28:14 +00:00Commented May 23, 2014 at 0:28
-
probably you can try this unix.stackexchange.com/questions/5535/non-root-package-managersharish.venkat– harish.venkat2014-05-23 04:25:00 +00:00Commented May 23, 2014 at 4:25
Add a comment
|
1 Answer
There is no easy way to do this, if any... You can try going with following way, I've done it once and I said: "Never more".
- Basically you need to download source of package with wget or with apt-get or whatever...
- Go to the downloaded package directory with
cd my_package - Issue:
./configure --prefix=$HOMEor if you don't want the directory to be in root of your HOME them create new sub-directory in your HOME and alter command accordingly. - make
- make install
This should be the steps.
Good luck with it :)
-
You might need more dependencies (newer version of libXYZ than is installed, maybe a compiler...), there is a reason package managers exist.Fabian– Fabian2014-05-22 23:59:32 +00:00Commented May 22, 2014 at 23:59
-
Hi! Thanks for your reply. But don't I also need to set path variables for the dependencies? I also don't know how to do that :( I have put the libxml2 file in the structure/home/username/usr/lib to avoid putting it directly into the root. The other dependencies that need to be able to see these are also in the same folder.newbie– newbie2014-05-23 00:02:19 +00:00Commented May 23, 2014 at 0:02
-
By the way i tried this... and it gives "Cannot create regular file : Permission denied" error message when running - make installnewbie– newbie2014-05-23 00:54:52 +00:00Commented May 23, 2014 at 0:54