Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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).
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.
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.
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
## 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
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:
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.
You won't be installing it through apt--that was just regarding the libraries you said you needed. That ought to answer the second question as well. And yes, synaptic is just a pretty front-end for apt, afaik. Or they're both pretty front-ends for the same library, I haven't looked in the code for any of the two.
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 ]
In fact, always use code tags when posting logs (including typescripts), config files or (surprise!) 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?).
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
root@ubuntu:~/cairo-1.0.2# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for g77 option to produce PIC... -fPIC
checking if g77 PIC flag -fPIC works... yes
checking if g77 supports -c -o file.o... yes
checking whether the g77 linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for ANSI C header files... (cached) yes
checking whether byte ordering is bigendian... no
checking for vasnprintf... no
checking for cos in -lm... yes
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for XRENDER... checking X11/extensions/Xrender.h usability... no
checking X11/extensions/Xrender.h presence... no
checking for X11/extensions/Xrender.h... no
checking for XrmFinalize... no
checking for some Win32 platform... no
configure: WARNING: Could not find libpng in the pkg-config search path
configure: WARNING: "*** To run the tests
checking for FONTCONFIG... checking for FcFini... no
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
configure: WARNING: PS backend requires FreeType 2.1.4 or newer, disabling
checking for compress in -lz... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
configure: WARNING: PDF backend requires FreeType 2.1.4 or newer, disabling
checking for stdint.h... (cached) yes
checking for inttypes.h... (cached) yes
checking sys/int_types.h usability... no
checking sys/int_types.h presence... no
checking for sys/int_types.h... no
checking for uint64_t... yes
checking for uint128_t... no
checking For MMX/SSE intrinsics in the compiler... yes
configure: creating ./config.status
config.status: creating cairo.pc
config.status: creating Makefile
config.status: creating pixman/Makefile
config.status: creating pixman/src/Makefile
config.status: creating src/Makefile
config.status: creating src/cairo-features.h
config.status: creating test/Makefile
config.status: creating doc/Makefile
config.status: creating doc/public/Makefile
config.status: creating doc/public/version.xml
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
cairo will be compiled with the following surface backends:
Xlib: no (requires Xrender http://freedesktop.org/Software/xlibs)
Quartz: no
XCB: no
Win32: no
PostScript: no
PDF: no
glitz: no
the following font backends:
FreeType: no
Win32: no
ATSUI: no
and the following features:
PNG functions: no
configure: error: Cairo requires at least one font backend.
Please install freetype and fontconfig, then try again:
http://freetype.org/ http://fontconfig.org/
I didn't realize code had to be marked as such. Hope that's not too big. Don't seem to have etc/apt/prefences, though.
It's not an absolute requirement, but it helps your reader (so you want to do it)
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 )
Quote:
Please excuse my ignorance, I didn't mean to try your patience
You're excused. Like I said (or at least tried to hint to), you don't need excusing yourself, I was just being unreasonably hostile (I might be having a bad hair day, or something--it's probably my looming statistics exam that's driving me nuts and up the fence, or something).
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 -
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
Password:
root@ubuntu:/usr/bin/atk-1.0.1# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... missing
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependant libraries... pass_all
checking command to parse /usr/bin/nm -B output... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... no
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
creating libtool
checking for Win32... no
checking for aclocal flags...
checking for pkg-config... /usr/local/bin/pkg-config
checking for GLIB - version >= 2.0.0...
*** 'pkg-config --modversion glib-2.0' returned 2.0.1, but GLIB (2.8.3)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GLib. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files
no
configure: error:
*** GLIB 2.0.0 or better is required. The latest version of
*** GLIB is always available from ftp://ftp.gtk.org/.
I know that glib is installed, so I can't understand this. What is an environment variable? And how would I go about modifying it? My impression from googling LD_LIBRARY_PATH is that it's not advisable to touch it. So, good job I haven't a clue what it is or where it's located! Also, I don't have anything called 'ld.so.conf' in /etc, though I do have ld.so.cache and ld.so.hwcappkgs.
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...
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.
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.
in your ~/.bashrc, and source it ("$ source ~/.bashrc", or start a new bash).
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).
You're welcome. Anything I can do to increase the adoption of free software
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).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.