Jordii
March 3rd, 2010, 08:15 PM
Compiling and installing KTorrent version 3.0.0 or later :
tar -xvjf ktorrent-3.X.Y.tar.bz2
cd ktorrent-3.X.Y
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..
make
sudo make installThat's what I followed but something goes wrong:
jordi@jordi-laptop:~/Downloads/ktorrent-3.3.4$ mkdir build
jordi@jordi-laptop:~/Downloads/ktorrent-3.3.4$ cd build
jordi@jordi-laptop:~/Downloads/ktorrent-3.3.4/build$ cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..
The program 'cmake' is currently not installed. You can install it by typing:
sudo apt-get install cmake
cmake: command not found
jordi@jordi-laptop:~/Downloads/ktorrent-3.3.4/build$ sudo apt-get install cmake
[sudo] password for jordi:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libopenal1 linux-headers-2.6.31-14 liblog4j1.2-java libcommons-cli-java
libswt-gnome-gtk-3.4-jni flac openarena-data libcommons-lang-java
linux-headers-2.6.31-14-generic nexuiz-music java-wrappers
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
cmake-data emacsen-common libxmlrpc-core-c3
The following NEW packages will be installed:
cmake cmake-data emacsen-common libxmlrpc-core-c3
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 5,117kB of archives.
After this operation, 14.2MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://nl.archive.ubuntu.com karmic-updates/main libxmlrpc-core-c3 1.06.27-1ubuntu6.1 [89.6kB]
Get:2 http://nl.archive.ubuntu.com karmic/main emacsen-common 1.4.19ubuntu1 [19.0kB]
Get:3 http://nl.archive.ubuntu.com karmic/main cmake-data 2.6.4-1ubuntu2 [1,141kB]
Get:4 http://nl.archive.ubuntu.com karmic/main cmake 2.6.4-1ubuntu2 [3,867kB]
Fetched 5,117kB in 3s (1,568kB/s)
Selecting previously deselected package libxmlrpc-core-c3.
(Reading database ... 186051 files and directories currently installed.)
Unpacking libxmlrpc-core-c3 (from .../libxmlrpc-core-c3_1.06.27-1ubuntu6.1_i386.deb) ...
Selecting previously deselected package emacsen-common.
Unpacking emacsen-common (from .../emacsen-common_1.4.19ubuntu1_all.deb) ...
Selecting previously deselected package cmake-data.
Unpacking cmake-data (from .../cmake-data_2.6.4-1ubuntu2_all.deb) ...
Selecting previously deselected package cmake.
Unpacking cmake (from .../cmake_2.6.4-1ubuntu2_i386.deb) ...
Processing triggers for man-db ...
Setting up libxmlrpc-core-c3 (1.06.27-1ubuntu6.1) ...
Setting up emacsen-common (1.4.19ubuntu1) ...
emacsen-common: Handling install of emacsen flavor emacs
Ignoring install-info called from maintainer script
The package emacsen-common should be rebuild with new debhelper to get trigger support
Setting up cmake-data (2.6.4-1ubuntu2) ...
emacsen-common: Handling install of emacsen flavor emacs
Setting up cmake (2.6.4-1ubuntu2) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
jordi@jordi-laptop:~/Downloads/ktorrent-3.3.4/build$ cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..
-- The C compiler identification is GNU
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Error at /usr/share/cmake-2.6/Modules/FindKDE4.cmake:84 (MESSAGE):
ERROR: cmake/modules/FindKDE4Internal.cmake not found in
/home/jordi/.kde/share/apps;/usr/share/kde4/apps
Call Stack (most recent call first):
CMakeLists.txt:2 (find_package)
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 2.6)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring incomplete, errors occurred!Getting sick of all the errors I'm getting with just about everything I try on Ubuntu.
tar -xvjf ktorrent-3.X.Y.tar.bz2
cd ktorrent-3.X.Y
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..
make
sudo make installThat's what I followed but something goes wrong:
jordi@jordi-laptop:~/Downloads/ktorrent-3.3.4$ mkdir build
jordi@jordi-laptop:~/Downloads/ktorrent-3.3.4$ cd build
jordi@jordi-laptop:~/Downloads/ktorrent-3.3.4/build$ cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..
The program 'cmake' is currently not installed. You can install it by typing:
sudo apt-get install cmake
cmake: command not found
jordi@jordi-laptop:~/Downloads/ktorrent-3.3.4/build$ sudo apt-get install cmake
[sudo] password for jordi:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libopenal1 linux-headers-2.6.31-14 liblog4j1.2-java libcommons-cli-java
libswt-gnome-gtk-3.4-jni flac openarena-data libcommons-lang-java
linux-headers-2.6.31-14-generic nexuiz-music java-wrappers
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
cmake-data emacsen-common libxmlrpc-core-c3
The following NEW packages will be installed:
cmake cmake-data emacsen-common libxmlrpc-core-c3
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 5,117kB of archives.
After this operation, 14.2MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://nl.archive.ubuntu.com karmic-updates/main libxmlrpc-core-c3 1.06.27-1ubuntu6.1 [89.6kB]
Get:2 http://nl.archive.ubuntu.com karmic/main emacsen-common 1.4.19ubuntu1 [19.0kB]
Get:3 http://nl.archive.ubuntu.com karmic/main cmake-data 2.6.4-1ubuntu2 [1,141kB]
Get:4 http://nl.archive.ubuntu.com karmic/main cmake 2.6.4-1ubuntu2 [3,867kB]
Fetched 5,117kB in 3s (1,568kB/s)
Selecting previously deselected package libxmlrpc-core-c3.
(Reading database ... 186051 files and directories currently installed.)
Unpacking libxmlrpc-core-c3 (from .../libxmlrpc-core-c3_1.06.27-1ubuntu6.1_i386.deb) ...
Selecting previously deselected package emacsen-common.
Unpacking emacsen-common (from .../emacsen-common_1.4.19ubuntu1_all.deb) ...
Selecting previously deselected package cmake-data.
Unpacking cmake-data (from .../cmake-data_2.6.4-1ubuntu2_all.deb) ...
Selecting previously deselected package cmake.
Unpacking cmake (from .../cmake_2.6.4-1ubuntu2_i386.deb) ...
Processing triggers for man-db ...
Setting up libxmlrpc-core-c3 (1.06.27-1ubuntu6.1) ...
Setting up emacsen-common (1.4.19ubuntu1) ...
emacsen-common: Handling install of emacsen flavor emacs
Ignoring install-info called from maintainer script
The package emacsen-common should be rebuild with new debhelper to get trigger support
Setting up cmake-data (2.6.4-1ubuntu2) ...
emacsen-common: Handling install of emacsen flavor emacs
Setting up cmake (2.6.4-1ubuntu2) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
jordi@jordi-laptop:~/Downloads/ktorrent-3.3.4/build$ cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..
-- The C compiler identification is GNU
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Error at /usr/share/cmake-2.6/Modules/FindKDE4.cmake:84 (MESSAGE):
ERROR: cmake/modules/FindKDE4Internal.cmake not found in
/home/jordi/.kde/share/apps;/usr/share/kde4/apps
Call Stack (most recent call first):
CMakeLists.txt:2 (find_package)
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 2.6)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring incomplete, errors occurred!Getting sick of all the errors I'm getting with just about everything I try on Ubuntu.