LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-09-2007, 08:11 AM   #1
[KIA]aze
Member
 
Registered: Jun 2006
Distribution: Debian, Ubuntu, Windows XP
Posts: 146

Rep: Reputation: 16
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.]
 
Old 03-09-2007, 08:49 AM   #2
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
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
 
Old 03-09-2007, 09:09 AM   #3
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,883
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
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
 
Old 03-09-2007, 09:48 AM   #4
[KIA]aze
Member
 
Registered: Jun 2006
Distribution: Debian, Ubuntu, Windows XP
Posts: 146

Original Poster
Rep: Reputation: 16
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. (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?
 
  


Reply


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
When to install as user, when to install as root fooze Linux - Software 2 11-11-2005 12:27 PM
Kernel Panic - Root Disks - install.1 install.2 bonecrusher Slackware - Installation 17 05-30-2004 10:59 AM
root files: create as root:root or root:wheel? pcass Linux - Security 1 02-07-2004 04:14 PM
How do i install a rpm not being root? Hano Linux - Software 7 09-10-2003 05:28 AM
Install from root or not? Typhonian Linux - Hardware 2 09-02-2003 11:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:49 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
Open Source Consulting | Domain Registration