LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to install without being root (https://www.linuxquestions.org/questions/linux-software-2/how-to-install-without-being-root-535973/)

[KIA]aze 03-09-2007 08:11 AM

How to install without being root
 
Is there a way to install a program like gedit for example without being root?

I tried to install gedit by doing:
./configure --prefix=~
make;make install

But then it blocks at configure because of missing packages. (I'm on a Debian system with KDE)
Now I installed those packages:
-gnome-doc-utils
-libxml
-libxslt
using those tricks:
Code:

./configure --prefix=~
./autogen.sh --prefix=~
export PKG_CONFIG_PATH="/~/lib/pkgconfig/:/~/gnome-doc-utils-0.6.1:/usr/lib/"

But I still get these errors when running ./configure for gedit:
Code:

checking for GEDIT... configure: error: Package requirements (
        glib-2.0 >= 2.12.0
        gtk+-2.0 >= 2.10.0
        gtksourceview-1.0 >= 1.8.0
        libgnomeui-2.0 >= 2.16.0
        libglade-2.0 >= 2.5.1
        libgnomeprintui-2.2 >= 2.12.1
        gnome-vfs-2.0 >= 2.16.0
) were not met:

Requested 'glib-2.0 >= 2.12.0' but version of GLib is 2.6.4

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GEDIT_CFLAGS
and GEDIT_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

How can I know how many packages I'll have to install?
Will I end up with installing the whole gnome desktop?!
Is there a simpler way to do this like some --prefix option for apt-get?

[I know I'm not supposed to install programs as a simple user, but I don't have gedit on the system and was wondering if I could install it as a user.]

dive 03-09-2007 08:49 AM

Quote:

Originally Posted by [KIA]aze
Code:

./configure --prefix=~
./autogen.sh --prefix=~
export PKG_CONFIG_PATH="/~/lib/pkgconfig/:/~/gnome-doc-utils-0.6.1:/usr/lib/"


Try without the first /
/~/ is not a path
~/ is

craigevil 03-09-2007 09:09 AM

Why not simply do sudo apt-get install gedit? It is in the normal Debian repos and most likely Ubuntu as well depending on which one your in.

If you aren't using Gnome why use a Gnome editor? Use something like kedit, kate.

$ apt-cache show gedit
Package: gedit
Priority: optional
Section: gnome
Installed-Size: 2172
Maintainer: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>
Architecture: i386
Version: 2.14.4-8
Depends: gconf2 (>= 2.10.1-2), python, python-support (>= 0.2), libart-2.0-2 (>= 2.3.16), libaspell15 (>= 0.60), libatk1.0-0 (>= 1.12.2), libc6 (>= 2.3.6-6), libgconf2-4 (>= 2.13.5), libglade2-0 (>= 1:2.5.1), libglib2.0-0 (>= 2.12.0), libgnome2-0 (>= 2.14.1), libgnomecanvas2-0 (>= 2.11.1), libgnomeprint2.2-0 (>= 2.12.1), libgnomeprintui2.2-0 (>= 2.12.1), libgnomeui-0 (>= 2.13.0), libgnomevfs2-0 (>= 2.13.92), libgtk2.0-0 (>= 2.8.0), libgtksourceview1.0-0 (>= 1.7.2), libpango1.0-0 (>= 1.14.8), libx11-6, libxml2 (>= 2.6.27), python2.4 (>= 2.3.90), scrollkeeper, gedit-common (>= 2.14), gedit-common (<< 2.15), python-gnome2-desktop, python-gtk2, python-glade2
Conflicts: gedit-common (<= 2.10.5-1)
Filename: pool/main/g/gedit/gedit_2.14.4-8_i386.deb

[KIA]aze 03-09-2007 09:48 AM

Quote:

Originally Posted by dive
Try without the first /
/~/ is not a path
~/ is

Oops, sorry, that was just a typo. In fact I had it written like this /u/login/, and I just wanted to remove the login.:rolleyes: (and I don't know why it's /u instead of /home, it's just configured like this here)

Quote:

Use something like kedit, kate.
That's what I'm doing and I learned to love kate. ^^
I was just curious to know if I could install gedit without having root powers.

Thanks for the "apt-cache show gedit" command. :)
Does it search for the dependencies recursively, also considering what is already installed and not?


All times are GMT -5. The time now is 04:29 AM.