Installing/configuring on Ubuntu
Hi,
I'm currently testing the linux waters with Ubuntu running through VMware player (a virtual machine). There are a few applications which I need which are free for linux, so I thought I'd try it - specifically the music programming package OpenMusic and its dependencies. This needs to be compiled from source, but whenever I try and configure it I get error messages. It requires gtk+, but that requires freetype (or fontconfig). However, even after installing both of those it still complains that they haven't been installed (even though fontconfig is actually already on Ubuntu). I've followed all the usual guidelines for installing and compiling (tar xvjf, ./configure, make, make install). But I'm having such a headache with this that I'm considering giving up and paying for the XP version of the software (very expensive). Would very much welcome some help/advice... P.S: Info on compiling and installing OpenMusic on linux can be found at freesoftware.ircam.fr (in English). |
Since Ubuntu is similar to debian, what you probably need and don't have is the -dev packages.
do an "apt-cache search libgtk | grep ^libgtk | grep dev | sort | less". I'd try "libgtk1.2-dev" and/or "libgtk2.0-dev" on my debian box. For freetype, I'd go with "apt-cache search freetype | grep ^libfreetype | grep dev | sort | less", which gives me "libfreetype6-dev". The details may vary. hth --Jonas |
Thanks for your suggestions.
I have libfreetype6-dev, and I've installed libgtk2.0-dev. Still no luck. GTK+ depends on cairo - it's cairo that complains about not finding Freetype (pango and atk also complain). But I know it's installed on my system, so I don't know what's going on. I'd really like to avoid buying this software if I can avoid it. Besides which, I was hoping to permanently switch to linux, which doesn't seem likely if I don't manage to install this. |
Interesting--I found http://openmusic.linuxtag.org/module...ent/openmusic/ before reading through your post again. Lucky me :)
Anyways, please post a typescript (using script(1), install if necessary), so I can see what's happening. Also, post your apt sources.list and preferences (/etc/apt/sources.list and /etc/apt/preferences on my debian box). If you use synaptic, please post its preferences (/var/lib/synaptic/preferences for me) and sources.list if it isn't /etc/apt/sources.list (I think it is, though). If you're not using the command-line tools, please learn how to use them--it's not hard--so that you can generate a typescript. I think apt-get {remove, remove --purge, update, dist-upgrade, install} and apt-cache {search, show} will do 90% of the job (if not more) of anyone, and 100% of this particular job. /me keeps wondering |
Hi again,
Thanks for your suggestion, I'll try that - I was just downloading the tarballs and going from there (though I was using Synaptic for the native Ubuntu packages). Actually what you found isn't OpenMusic, but a namesake (and a totally different thing altogether). More info on the real one can be found at http://freesoftware.ircam.fr/article.php3?id_article=73. It's an advanced tool for computer-aided composition. To be more precise about what I was doing: I was just downloading the tarballs by hand to /home/ubuntu, then using the command line I'd untar, configure (or try to!), make then make install. I've investigated apt-get but not actaully used it. I have a sources.list for apt - deb cdrom:[Ubuntu 5.10 _Breezy Badger_ - Release i386 (20051012)]/ breezy main r estricted deb http://us.archive.ubuntu.com/ubuntu breezy main restricted deb-src http://us.archive.ubuntu.com/ubuntu breezy main restricted ## Major bug fix updates produced after the final release of the ## distribution. deb http://us.archive.ubuntu.com/ubuntu breezy-updates main restricted deb-src http://us.archive.ubuntu.com/ubuntu breezy-updates main restricted ## Uncomment the following two lines to add software from the 'universe' ## repository. ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team, and may not be under a free licence. Please satisfy yourself as to ## your rights to use the software. Also, please note that software in ## universe WILL NOT receive any review or updates from the Ubuntu security ## team. # deb http://us.archive.ubuntu.com/ubuntu breezy universe # deb-src http://us.archive.ubuntu.com/ubuntu breezy universe ## Uncomment the following two lines to add software from the 'backports' ## repository. ## N.B. software from this repository may not have been tested as ## extensively as that contained in the main release, although it includes ## newer versions of some applications which may provide useful features. ## Also, please note that software in backports WILL NOT receive any review ## or updates from the Ubuntu security team. # deb http://us.archive.ubuntu.com/ubuntu breezy-backports main restricted unive rse multiverse # deb-src http://us.archive.ubuntu.com/ubuntu breezy-backports main restricted u niverse multiverse deb http://security.ubuntu.com/ubuntu breezy-security main restricted deb-src http://security.ubuntu.com/ubuntu breezy-security main restricted # deb http://security.ubuntu.com/ubuntu breezy-security universe # deb-src http://security.ubuntu.com/ubuntu breezy-security universe So, given that OpenMusic is available at Sourceforge, what should I add to that? And will that just configure and install everything for me? I take it that Synaptic is just a pretty graphical interface for apt. |
warning: I might sound somewhat (very?) hostile in this post, so please brace yourself. It's not like you've pissed me off, or I'm taking out my anger on you. I'm just being "straight, no chaser".
Thanks for the sources.list; that wasn't the only thing I needed, but it looks to me as if it isn't all that bad--I'm using debian main only, and I have (I think) all the libraries I need. Could you post the script I asked for. Just saying "cairo complains" doesn't help me in figuring out what you're doing wrong--but the script might. Quote:
Also, sorry to be barking at you, but how the **** did you manage to insert your sources.list? It's linewrapped at seemingly arbitrary places, the spacing is wrong in the breezy-backports lines ("unive<space>rse" and "u<space>niverse"). If it's LQ fucking with your layout, use code tags like this: Code:
[ code ] This part won't get sucked into the HTML tar pit. [ / code ] And you haven't yet posted a typescript and your /etc/apt/preferences. Please do. If it's too big (use your own judgement), it may be smarter to publish the files somewhere on the web (for instance, on your machine?). --Jonas |
Please excuse my ignorance, I didn't mean to try your patience, but I'm a total beginner at this and am finding it quite difficult and frustrating. I've got Ubuntu running through VMware player, and as I was having a problem accessing LQ I simply pasted the sources list to an email, sent it to myself, then returned to XP and pasted it into my reply to you.
Code:
root@ubuntu:~# cd cairo-1.0.2 |
Quote:
If you don't have an /etc/apt/preferences, I think it's equivalent to having an empty one (FYI). For a bit more reliable file transfer, at least make whatever you want to paste an attachment, save the attached file in XP, and go from there. Or, you could run sshd (ubuntu-side) and putty's sftp client (XP-side, obviously) (see http://www.chiark.greenend.org.uk/~s...download.html), if that's not too difficult. Also, I take it that the various errors are created during the transportation from VMware to the "real OS" (yes, the reason for the use of quotes is ambiguous, and yes, that's on purpose :D) Quote:
Also, why are you compiling libcairo on your own? It seems like Ubuntu has the version you're compiling, for the release you're using: http://packages.ubuntu.com/cgi-bin/s...zy&release=all Anyways, the error message says to install fontconfig, so try installing fontconfig. It's available for ubuntu: http://packages.ubuntu.com/cgi-bin/s...zy&release=all hth --Jonas |
Jonas,
Thanks - from one student to another. Might the problem be with the VMware system I'm running Ubuntu through? It's a free player that I downloaded from their site. I uninstalled and reinstalled it and ran a fresh Ubuntu. This time I untarred everything neatly into /usr/bin. The specific packages that I need for OpenMusic are - cmucl-2003-12-x86-linux lisp.h.patch omlinux-clg-0.54 omlinux-gtkcanvas-4.7.1.beta openmusic-4.7.1.beta gtkcanvas needs - GTK+ ATK GLib Pango GTK+ dependencies - cairo jpegsrc libpng pkg-config tiff Cairo configured/installed this time (detected Freetype), as did Pango (that had the same problem earlier). Unfortunately now when I try and and configure atk I get - Code:
ubuntu@ubuntu:/usr/bin/atk-1.0.1$ sudo -s Despite my fumblings I did actually learn something today, which was encouraging - I discovered how to change permission on files! Wow. Perhaps there's hope for me yet... P.S: OpenMusic packages available at - ftp://freesoftware.ircam.fr/pub/open...es/4.7.1.beta/ GTK+ at - http://www.gtk.org/download/ |
Just looked at the GTK site again and noticed their VERY DETAILED installation instructions! Why I didn't read these before I don't know...just got carried away I suppose. I'll run everything again according to the instructions, and report back.
Many thanks again, Chris P.S: I now know what an environment variable is! Easy. I think I might be able to sort this thing out now... |
Okay, so now you're not compiling cairo (which Ubuntu has compiled for you), you're compiling atk (which Ubuntu has compiled for you). apt-cache search libatk1.0-dev. But if you really want to compile it yourself, feel free to do so, I just don't get why you want to do that.
Anyways, let me know how it turns out --Jonas |
Because, in my ignorance, I didn't realise that if I had libatk1.0-dev I wouldn't need to install atk. Are they not different things then? Also, when I do printenv on a shell I can't find LD_LIBRARY_PATH anywhere on the list. PATH, yes, but not LD_LIBRARY_PATH.
|
well, then LD_LIBRARY_PATH hasn't been set. Add
Code:
export LD_LIBRARY_PATH=/some/directory:/some/other/directory:/a/third/directory libatk1.0-dev installs the data that you need when compiling programs that use the atk library, libatk1.0 installs the data that you need when running programs that use that library. (similarly for other (foo, foo-dev) package pairs). |
OK, got that - thanks Jonas.
|
Quote:
By the way, does this mean you have solved this problem? Then I think it'd be a good idea to go back and edit your first post, so it says in big bold letters, at the top, something to the effect of "I got the problem all worked out. The solution is this/here: <something relevant>." In that way, someone who comes wandering into the thread will know what's going on (so they can move on to the next unsolved thread, or read the solution, or... whatever). Just a thought --Jonas |
All times are GMT -5. The time now is 06:26 AM. |