0

I need to install Popt. Was following given instructions, but make install requires root permission. My question is:
Is it possible to install Popt locally (without root permission)? And if yes, how can I do this?

0x90
  • 39,472
  • 36
  • 165
  • 245
pogibas
  • 27,303
  • 19
  • 84
  • 117

1 Answers1

1

If it is for your own use within your source code: you can install it locally and not to /usr but if you run application expects libpopt.so to be located in /usr you must to have write permmision to /usr in order it to be installed there.

0x90
  • 39,472
  • 36
  • 165
  • 245
  • How can I modify this command `./configure --prefix=/usr` to install Popt locally? – pogibas Jun 08 '13 at 21:38
  • I guess `./configure --prefix=/path/to/your/locally/dir`, but install it to `/usr` that is why you have `sudo` for – 0x90 Jun 08 '13 at 21:39
  • It was my mistake - I was trying to add `~/` instead of `/home` – pogibas Jun 08 '13 at 21:41
  • try `./configure --prefix=$(~)` – 0x90 Jun 08 '13 at 21:43
  • I was able to install popt locally using `./configure --prefix=/path/to/your/locally/dir`, but as mentioned I am having problems with my application locating libpopt (`whereis libpopt` gives no results). – pogibas Jun 08 '13 at 22:40
  • See this answer about how an application finds the path to libs it needs on runtime http://stackoverflow.com/a/1681259/1031417 try to add your directory to `LD_LIBRARY_PATH`, read the answer more carefully. – 0x90 Jun 08 '13 at 22:45