$ sudo apt-get install build-essential
$ sudo apt-get build-dep emacs
Will help you download all the dependencies
My ubuntu has emacs22, if that will work for you
$ sudo apt-get install emacs <==note you missed the s on the end when you tried before
First, there are two problems with your existing
--with-qt-libraries= should point to /usr/lib/qt3 instead of /usr/lib/, unless you've installed Qt3 libraries by hand and know they're at that location.
--prefix= needs to point to the base location where the package will be installed. It doesn't point to anything needed for compiling the package. /usr/lib/kde4 is probably a bad choice; you'll need to add it to the $PATH to execute the program. Most likely, you want
--prefix=$HOME, to install either to /usr/local/bin or /home/[username]/bin, or stick with the program's default setting (/usr/local/kde).
On a fairly clean Ubuntu 9.10 virtual machine, I needed to install these packages and their dependencies.
sudo apt-get install libqt3-headers libqt3-compat-headers libqt3-mt-dev
qt3-dev-tools qt3-dev-tools-compat kdelibs4-dev
./configure checks for several tools that were part of aRts -- the mcopidl and artsc-config commands, which are no longer included in any KDE packages in the standard Ubuntu repositories. aRts was an old KDE sound library, and I believe it's been completely replaced or subsumed.
I've no idea if kgraphspace requires the sound functionality, so I created the shellscripts $HOME/bin/mcopidl and $HOME/bin/artsc-config that only contain this:
That's enough to satisfy the
./configure checks, but won't work properly if these programs are actually called during compilation.
According to Ubuntu's repository websearch, the real programs were last available in Ubuntu 8.10 (Intrepid). If you really need kgraphspace, consider installing Ubuntu 8.04. (Hardy was the LTS release of that era, and its repositories will be around longer than the Intrepid repositories.)
Here's my working
./configure command (options split into separate lines for clarity):
make dies with the following error, and this is as far as I can get in attempting to compile this software:
make: Entering directory `/home/quack/test/kgraphspace-0.3.0-pre1/kgraphspace'
source='ktypesstats.cpp' object='ktypesstats.o' libtool=no \
depfile='.deps/ktypesstats.Po' tmpdepfile='.deps/ktypesstats.TPo' \
depmode=gcc3 /bin/bash ../admin/depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde -I/usr/include/qt3
-I. -Wall -Wall -c -o ktypesstats.o `test -f 'ktypesstats.cpp' ||
ktypesstats.cpp: In member function ‘QString KTypesStats::getFileType(const char*)’:
ktypesstats.cpp:112: error: invalid conversion from ‘const char*’ to ‘char*’
make: *** [ktypesstats.o] Error 1
You could try installing an earlier GCC4 release (gcc-4.1 or gcc-4.2), since this Gentoo bug indicates problems compiling with GCC 4.3 (Ubuntu 9.10 provides GCC 4.4 by default).
However, one of the comments indicates that kgraphspace is a dead project, last updated in 2002. The commenter recommends Filelight as a potential replacement.
Install libvala-dev? Depending on your distribution, your command may be different, but in my case it would be on Ubuntu:
If you are on Debian based linux then just do
and it will usually download the latest version.