PDA

View Full Version : [SOLVED] 8.10 Help installing an application



jfbooth
March 26th, 2009, 09:03 PM
Trying to install an application using 2 different sources of instruction.

First instruction(s) from package README:

Listen depends on the Python runtime and associated libraries.
Python (>= 2.4) : http://www.python.org
PyGTK (>= 2.8) + header : http://www.pygtk.org
PyGSt (>= 0.10) : http://gstreamer.freedesktop.org/
pyinotify : http://pyinotify.sourceforge.net/
python-webkitgtk : http://code.google.com/p/pywebkitgtk/
or python-gtkmozembed : http://www.pygtk.org
python-xlib : http://python-xlib.sourceforge.net
or python-eggtrayicon : http://www.pygtk.org

Optional depends:
python-musicbrainz2 : http://www.musicbrainz.org
libtunepimp : http://www.musicbrainz.org
python-daap : http://jerakeen.org/code/PythonDaap/
pygpod and libgpod0 >= 0.3.2 : http://gtkpod.org/ (ipod support)
python-sexy : http://www.chipx86.com/wiki/Libsexy
gnome-python : http://www.pygtk.org

To compile use:
make clean
make

To install
make install
or
PREFIX=/usr/local make install

For generate translation source file
make po-gen

Build translation
make po-data


Second instruction(s):
CheckInstall keeps track of all files installed by a "make install" or
equivalent, creates a Slackware, RPM, or Debian package with those
files, and adds it to the installed packages database, allowing for
easy package removal or distribution.
Use CheckInstall instead of just running "sudo make install"
-------
Instead of
sudo make installyou will use
sudo checkinstall
--------------

So, starting with first instructions:

owner@ubuntu:~/Desktop/SRC/listen-0.6rc2$ sudo make clean
[sudo] password for owner:
rm -rf data/*.h
rm -rf misc/*.h
rm -rf po/*.mo
rm -rf build
rm -f tags
rm -f misc/listen.1 listen.1.gz listen.desktop
rm -rf dists/
rm -f listen org.gnome.Listen.service
find . -type f -name '*.pyc' -print | xargs rm -rf
find . -type f -name '*.pyo' -print | xargs rm -rf
rm -f src/*.so
make -C mmkeys clean
make[1]: Entering directory `/home/owner/Desktop/SRC/listen-0.6rc2/mmkeys'
rm -f mmkeys.so *.o mmkeyspy.c
rm -rf build dist
make[1]: Leaving directory `/home/owner/Desktop/SRC/listen-0.6rc2/mmkeys'

owner@ubuntu:~/Desktop/SRC/listen-0.6rc2$ sudo make
Checking for Python... /usr/bin/python
Checking Python version: 2.5
Checking for PyGTK >= 2.6: found
Checking for pyGTK-devel >= 2.6:
not found
Listen requires pyGTK-devel
make: *** [check] Error 1
owner@ubuntu:~/Desktop/SRC/listen-0.6rc2$
--------------
Looks like some kind of problem with 'make'. Do not want to proceed without clarification.

Of course if everything is OK, will proceed .. substituting Second Instructions in First Instructions as appropriate.

Comments are appreciated.

kanikilu
March 26th, 2009, 09:10 PM
Sorry this doesn't help with your specific problem or seems obvious, but there's a package in universe called listen (http://packages.ubuntu.com/intrepid/listen), is this the same thing that you are wanting to install? If so, it would be a lot easier to just do
sudo apt-get install listen rather than compiling from source.

jfbooth
March 26th, 2009, 09:33 PM
Thank you for your suggestion. I am very new at this, but from what I understand your suggestion would result in ver 0.5 which was already installed. I am trying to install 0.6rc2 which is not provided in Package Manager or otherwise. Have to 'roll my own'.

Checkinstall is supposed to hook 0.6rc2 to the GUI as far as putting the product on Menus etc. I have uninstalled 0.5. Like I say, I'm new at this, but that is what I think I am doing, anyway.

jfbooth
March 29th, 2009, 07:25 PM
I have a little more information. Found some MORE instructions at:

https://help.ubuntu.com/community/CompilingEasyHowTo

------------
Step 1: Prep your system for building packages

By default, Ubuntu does not come with the tools required. You need to install the package build-essential for making the package and checkinstall for putting it into your package manager. These can be found on the install CD or in the repositories, searching in Synaptic Package Manager or the command-line apt-get:

sudo apt-get install build-essential checkinstall

And since you may want to get code from some projects with no released version, you should install appropriate version management software.

sudo apt-get install cvs subversion git-core hg
------------------------

Got checkinstall, .. no problem BUT:

sudo apt-get install cvs subversion git-core hg
[sudo] password for owner:
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

Anyone help, .. Please?

snova
March 30th, 2009, 01:55 AM
sudo apt-get install cvs subversion git-core hg
[sudo] password for owner:
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

Anyone help, .. Please?

You get that if you run any two package management programs at once. But if you know you aren't running any others, remove the lock file manually:


sudo rm /var/lib/dpkg/lock

jfbooth
March 30th, 2009, 02:21 AM
thank you very much for the tip. To my knowledge, there are no other mamnagers running. I will try to verify and try your suggestion. Thank you again.

jfbooth
March 30th, 2009, 02:28 AM
yep, had synaptics manager open. I closed it and now I get:
sudo apt-get install cvs subversion git-core hg
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package hg

e-rebus
March 30th, 2009, 06:27 AM
You can try: sudo apt-get install mercurial, which will give you hg command (mercurial or hg is a distributed version control system).

jfbooth
March 30th, 2009, 06:57 AM
Thank you. I don't think it worked. Looks like about 5MB of something installed .. not sure this is all worth it just to update a lousy music manager, .. but it is a learning experience. Here are the results:

sudo apt-get install mercurial
[sudo] password for owner:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
mercurial-common python-beaker python-sqlalchemy rcs
Suggested packages:
qct tk8.4 wish vim emacs python-mysqldb python-pygments python-elementtree
python-subversion python-kinterbasdb python-psycopg2 python-sqlalchemy-doc
The following NEW packages will be installed:
mercurial mercurial-common python-beaker python-sqlalchemy rcs
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 1265kB of archives.
After this operation, 5612kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://us.archive.ubuntu.com intrepid/universe mercurial-common 1.0.1-5.1 [476kB]
Get:2 http://us.archive.ubuntu.com intrepid/universe mercurial 1.0.1-5.1 [73.7kB]
Get:3 http://us.archive.ubuntu.com intrepid/universe python-beaker 0.9.5-1 [28.4kB]
Get:4 http://us.archive.ubuntu.com intrepid/universe python-sqlalchemy 0.4.6-1 [345kB]
Get:5 http://us.archive.ubuntu.com intrepid/universe rcs 5.7-23 [342kB]
Fetched 1265kB in 3s (333kB/s)
Selecting previously deselected package mercurial-common.
(Reading database ... 108454 files and directories currently installed.)
Unpacking mercurial-common (from .../mercurial-common_1.0.1-5.1_all.deb) ...
Selecting previously deselected package mercurial.
Unpacking mercurial (from .../mercurial_1.0.1-5.1_i386.deb) ...
Selecting previously deselected package python-beaker.
Unpacking python-beaker (from .../python-beaker_0.9.5-1_all.deb) ...
Selecting previously deselected package python-sqlalchemy.
Unpacking python-sqlalchemy (from .../python-sqlalchemy_0.4.6-1_all.deb) ...
Selecting previously deselected package rcs.
Unpacking rcs (from .../archives/rcs_5.7-23_i386.deb) ...
Processing triggers for man-db ...
Setting up mercurial-common (1.0.1-5.1) ...

Setting up mercurial (1.0.1-5.1) ...
Disabling hgk extension (no 'wish' script found [can be found in 'tk8.4' package])
Disabling highlight extension (package 'python-pygments' is not installed)
Enabling inotify extension

Creating config file /etc/mercurial/hgrc.d/hgext.rc with new version

Setting up python-beaker (0.9.5-1) ...

Setting up python-sqlalchemy (0.4.6-1) ...

Setting up rcs (5.7-23) ...
Processing triggers for python-support ...
owner@ubuntu:~$ sudo apt-get install cvs subversion git-core hg
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package hg

jfbooth
March 30th, 2009, 07:16 AM
Actually, now I'm completely lost. Trying to combine 2-3 sets of instructions at 2-3 different websites and installing huge stuff on a limited space HD and so on compels me to remove Xubuntu and reinstall new. Had no idea upgrading an app could be so involved and confusing. I guess this is why Linux is free. Thanks everyone for your help.

owner@ubuntu:~$ sudo apt-get install cvs subversion git-core mercurial
Reading package lists... Done
Building dependency tree
Reading state information... Done
mercurial is already the newest version.
The following extra packages will be installed:
libapr1 libaprutil1 libdigest-sha1-perl liberror-perl libneon27-gnutls
libsvn1
Suggested packages:
git-doc git-arch git-cvs git-svn git-email git-daemon-run git-gui gitk
gitweb subversion-tools db4.6-util
The following NEW packages will be installed:
cvs git-core libapr1 libaprutil1 libdigest-sha1-perl liberror-perl
libneon27-gnutls libsvn1 subversion
0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded.
Need to get 6264kB of archives.
After this operation, 17.3MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://us.archive.ubuntu.com intrepid/main cvs 1:1.12.13-11 [1680kB]
Get:2 http://us.archive.ubuntu.com intrepid/main liberror-perl 0.17-1 [23.8kB]
Get:3 http://us.archive.ubuntu.com intrepid/main libdigest-sha1-perl 2.11-2build2 [25.4kB]
Get:4 http://us.archive.ubuntu.com intrepid-updates/main git-core 1:1.5.6.3-1.1ubuntu2.1 [3162kB]
Get:5 http://us.archive.ubuntu.com intrepid/main libapr1 1.2.12-4 [109kB]
Get:6 http://us.archive.ubuntu.com intrepid/main libaprutil1 1.2.12+dfsg-7 [75.7kB]
Get:7 http://us.archive.ubuntu.com intrepid/main libneon27-gnutls 0.28.2-2build1 [114kB]
Get:8 http://us.archive.ubuntu.com intrepid/main libsvn1 1.5.1dfsg1-1ubuntu2 [734kB]
Get:9 http://us.archive.ubuntu.com intrepid/main subversion 1.5.1dfsg1-1ubuntu2 [340kB]
Fetched 6264kB in 20s (304kB/s)
Preconfiguring packages ...
Selecting previously deselected package cvs.
(Reading database ... 108875 files and directories currently installed.)
Unpacking cvs (from .../cvs_1%3a1.12.13-11_i386.deb) ...
Selecting previously deselected package liberror-perl.
Unpacking liberror-perl (from .../liberror-perl_0.17-1_all.deb) ...
Selecting previously deselected package libdigest-sha1-perl.
Unpacking libdigest-sha1-perl (from .../libdigest-sha1-perl_2.11-2build2_i386.deb) ...
Selecting previously deselected package git-core.
Unpacking git-core (from .../git-core_1%3a1.5.6.3-1.1ubuntu2.1_i386.deb) ...
Selecting previously deselected package libapr1.
Unpacking libapr1 (from .../libapr1_1.2.12-4_i386.deb) ...
Selecting previously deselected package libaprutil1.
Unpacking libaprutil1 (from .../libaprutil1_1.2.12+dfsg-7_i386.deb) ...
Selecting previously deselected package libneon27-gnutls.
Unpacking libneon27-gnutls (from .../libneon27-gnutls_0.28.2-2build1_i386.deb) ...
Selecting previously deselected package libsvn1.
Unpacking libsvn1 (from .../libsvn1_1.5.1dfsg1-1ubuntu2_i386.deb) ...
Selecting previously deselected package subversion.
Unpacking subversion (from .../subversion_1.5.1dfsg1-1ubuntu2_i386.deb) ...
Processing triggers for man-db ...
Processing triggers for doc-base ...
Processing 2 added doc-base file(s)...
Registering documents with scrollkeeper...
Setting up cvs (1:1.12.13-11) ...

Setting up liberror-perl (0.17-1) ...
Setting up libdigest-sha1-perl (2.11-2build2) ...
Setting up git-core (1:1.5.6.3-1.1ubuntu2.1) ...
Setting up libapr1 (1.2.12-4) ...

Setting up libaprutil1 (1.2.12+dfsg-7) ...

Setting up libneon27-gnutls (0.28.2-2build1) ...

Setting up libsvn1 (1.5.1dfsg1-1ubuntu2) ...

Setting up subversion (1.5.1dfsg1-1ubuntu2) ...
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
owner@ubuntu:~$

thewolfman
March 30th, 2009, 08:11 AM
If you want a music manager try "Amarok", it is a KDE app but who cares, I use it myself and think it is great.

Just download and install using synaptic.(it will automatically download any dependencies for you!)

Have a good one.

WhiskyChris
March 30th, 2009, 08:32 AM
I'm fairly new to this as well but have now successfully managed to install some programs from source. The problem that normally arises is that to compile a program you need a lot of development libraries which normally aren't installed. For instance in your original post your final output is:



owner@ubuntu:~/Desktop/SRC/listen-0.6rc2$ sudo make
Checking for Python... /usr/bin/python
Checking Python version: 2.5
Checking for PyGTK >= 2.6: found
Checking for pyGTK-devel >= 2.6:
not found
Listen requires pyGTK-devel
make: *** [check] Error 1


This is saying you're missing the pyGTK-devel package of version greater than or equal to 2.6 This is the development libraries for the pyGTK package for which you do currently have installed (previous line in output). The problem is that often the file it quotes as being missing is called something different in the repo (looking in my package manager I find a package called "python-gtk2-dev" which could be what you want).

Also chances are - once you find this package you run into another missing package or two before it finally compiles happily! It can be frustrating, but perseverance and some creative searching will win in the end!

However, as thewolfman says, if you're just after a music player there's plenty others to choose from. I also use amarok and it works for me!

jfbooth
March 30th, 2009, 06:09 PM
Thank you both for the replies. This started out as simply trying to read the help file for Listen. Clicked on it, no help, but link to website. Went to website looking for help, noticed a new release. At that moment figured I would learn something, so I gave it a try. It has been a learning experience. I am much more interested in learning Linux than even having a music manager. Unfortunately, I have learned only that installing from source can and probably will gobble up disk space .. big time. What I did not learn was how to manage all that .. what if I have a 500GB external drive ... all that 'fat' could go there, .. except I don't know how to do that. That's the problem, . no where to find out what ya need to know.
XUBUNTU is uninstalled now from this 60GB drive (was a WUBI install). I have a 500GB USB drive on the way. Maybe I will put XUBUNTU on it ... so I can learn something.

WhiskyChris
March 31st, 2009, 01:58 AM
I think you have to be subjective when you say "gobble up disk space" - sure when you install from source you need not just the source file but the various libraries to support the compilation as well however depeninding how many programs you intend to compile this may or may not be a problem.

Many programs will rely on similar libraries, so once you have installed a few you will probably find you need to do less searching. Also you say you have a 60Gb drive and are suggesting that is too small - I have a fairly recent installation of ubuntu 8.10 on a 30Gb partition; it is currently occupying just over 11Gb, of which almost 5Gb is my home directory. From my readings this is not particularly small, and while I expect it to expand as I install more I wouldn't expect to fill 60Gb without using the majority of the space for data of some sort (pictures, videos etc).

I guess what I am saying is that from my limited experience I believe there is little to no "fat" in a typical install - including extra programs - and perhaps the external drive could be used for data/documents that you don't need all the time (this is what I use mine for). I believe 60Gb is more than enough for a normal install!

jfbooth
March 31st, 2009, 02:21 AM
I think I get your point and it is well taken. Maybe I have assumed some things .. when I install OS, .. it seems the OS goes into a partition of some kind and it defaults to about 8G. It can be changed 10G, 15G. A Wubi install is an example. At some point it comes up asking how big to set the partition and the default is around 8G. Same thing when I just installed Xubuntu using Sun VirtualBox (trying that out as a learning experience). So I am left thinking I have an OS on an 8G drive. Applications and their (FAT as I refer to them) all has to fit in that 8G ... NO? That, to a noob, is concerning.

Also (and I am sure Linuxheads HATE comparisons to Windows, I apologize), with say XP, I can install OS on first drive (C:) and applications to C:\Program Files until C: gets near full. Then connect an external HD and install more applications on it (E:\Program Files) and literally have Terabytes of installed programs on several different devices (drives), hypothetically. I have a feeling ya can't do that with Linux. You install Linux on a partition/drive/device whatever we need to call it, .. in your case a 30G "device". It is 1/2 used up. My question is, whether it is likely to happen or not, what do you do when that 30G is full?

Thank you. I understand I am new. I need to be VERY humble. There are instructions all over the 'Net for doing specific things, but I don't find anywhere that such fundamental questions are answered. Like I said, when I tried Wubi under Windows, I took the default of 8G. I was not and am still not sure exactly what that means in a practical sense.
Thank you for your time, wisdom, and advice. I do appreciate it.

WhiskyChris
March 31st, 2009, 03:17 AM
I see what you are getting at, and I'm not experienced to know how you might go about installing programs to different locations. What I do know is that, in general (and continuing the comparison) "C:\Windows" and "C:\Program Files" are in different places on the linux filesystem. I'll leave precise explanations to the more experiences but it's something along the lines of - the 'OS' and core programs are in one directory (/bin and some others) while programs you install are separate (/usr/bin for example) and I believe that directory can be in a different location (another partition/drive) although I'm getting a bit out of my depth here I'm afraid.

I agree that while 8Gb may be plenty of space for the 'OS' you may want more if you intend to install lots of programs. I look forward to further clarification from someone who's been using linux longer than me!

jfbooth
March 31st, 2009, 03:29 AM
I want to make it very clear that I am not criticizing or belittling anything. I appreciate your input and the time you have taken to assist.

"I look forward to further clarification"

So do I, .. and thank you again.

alphacrucis2
March 31st, 2009, 03:58 AM
I want to make it very clear that I am not criticizing or belittling anything. I appreciate your input and the time you have taken to assist.

"I look forward to further clarification"

So do I, .. and thank you again.

From what I gather the linux file system has a tree structure with the root being:

/

You can have everything on / under one big partition or else split branches of the tree onto partitions/disks of their own using "mount points". When you put a cd in for example it gets automatically mounted as:

/media/cdrom0

a usb flash drive plugged in on my machine appears as:

/media/disk

When I installed Ubuntu on one of my machines I selected the manual partitioning option and created a big partition on a second disk. I then told it to mount this partition as /home so all files stored under /home go onto the second disk. There is a program in the repos called gparted which allows you to play around with this after Ubuntu is already installed. Once you install it should appear in the menus under System/Administration/partition Editor. Be careful!

jfbooth
March 31st, 2009, 04:45 AM
Alpha. Thank you for the contribution to the thread. Sounds encouraging. Gives me something to look into. It is too vast to be covered in a forum topic and I thank everyone who has commented. I certainly have a ton to learn.