Can not compile

General support for problems installing or using Deluge
User avatar
irfan
Leecher
Leecher
Posts: 70
Joined: Sun Jun 03, 2007 5:36 pm
Location: Poland

Re: Can not compile

Post by irfan »

I have a problem...

Code: Select all

irfan@ubuntu:~/deluge$ python setup.py build
Attempting to detect your system information
32bit x86 system detected
Linux operating system detected
Libraries nomt
running build
running build_py
creating build
creating build/lib.linux-i686-2.5
creating build/lib.linux-i686-2.5/deluge
copying src/plugins.py -> build/lib.linux-i686-2.5/deluge
copying src/deluge_stats.py -> build/lib.linux-i686-2.5/deluge
copying src/__init__.py -> build/lib.linux-i686-2.5/deluge
copying src/ipc_manager.py -> build/lib.linux-i686-2.5/deluge
copying src/interface.py -> build/lib.linux-i686-2.5/deluge
copying src/dgtk.py -> build/lib.linux-i686-2.5/deluge
copying src/core.py -> build/lib.linux-i686-2.5/deluge
copying src/common.py -> build/lib.linux-i686-2.5/deluge
copying src/dialogs.py -> build/lib.linux-i686-2.5/deluge
copying src/pref.py -> build/lib.linux-i686-2.5/deluge
running build_ext
building 'deluge_core' extension
creating build/temp.linux-i686-2.5
creating build/temp.linux-i686-2.5/src
creating build/temp.linux-i686-2.5/libtorrent
creating build/temp.linux-i686-2.5/libtorrent/src
creating build/temp.linux-i686-2.5/libtorrent/src/kademlia
gcc -pthread -fno-strict-aliasing -Wall -DNDEBUG -O2 -fPIC -I./libtorrent -I./libtorrent/include -I./libtorrent/include/libtorrent -I/usr/include/python2.5 -I/usr/include/python2.5 -c src/deluge_core.cpp -o build/temp.linux-i686-2.5/src/deluge_core.o -Wno-missing-braces
In file included from src/deluge_core.cpp:41:
./libtorrent/include/libtorrent/hasher.hpp:45:25: error: openssl/sha.h: No such file or directory
./libtorrent/include/libtorrent/hasher.hpp:101: error: ‘SHA_CTX’ does not name a type
./libtorrent/include/libtorrent/hasher.hpp: In constructor ‘libtorrent::hasher::hasher()’:
./libtorrent/include/libtorrent/hasher.hpp:75: error: ‘m_context’ was not declared in this scope
./libtorrent/include/libtorrent/hasher.hpp:75: error: ‘SHA1_Init’ was not declared in this scope
./libtorrent/include/libtorrent/hasher.hpp: In constructor ‘libtorrent::hasher::hasher(const char*, int)’:
./libtorrent/include/libtorrent/hasher.hpp:78: error: ‘m_context’ was not declared in this scope
./libtorrent/include/libtorrent/hasher.hpp:78: error: ‘SHA1_Init’ was not declared in this scope
./libtorrent/include/libtorrent/hasher.hpp:81: error: ‘SHA1_Update’ was not declared in this scope
./libtorrent/include/libtorrent/hasher.hpp: In member function ‘void libtorrent::hasher::update(const char*, int)’:
./libtorrent/include/libtorrent/hasher.hpp:87: error: ‘m_context’ was not declared in this scope
./libtorrent/include/libtorrent/hasher.hpp:87: error: ‘SHA1_Update’ was not declared in this scope
./libtorrent/include/libtorrent/hasher.hpp: In member function ‘libtorrent::sha1_hash libtorrent::hasher::final()’:
./libtorrent/include/libtorrent/hasher.hpp:93: error: ‘m_context’ was not declared in this scope
./libtorrent/include/libtorrent/hasher.hpp:93: error: ‘SHA1_Final’ was not declared in this scope
./libtorrent/include/libtorrent/hasher.hpp: In member function ‘void libtorrent::hasher::reset()’:
./libtorrent/include/libtorrent/hasher.hpp:97: error: ‘m_context’ was not declared in this scope
./libtorrent/include/libtorrent/hasher.hpp:97: error: ‘SHA1_Init’ was not declared in this scope
error: command 'gcc' failed with exit status 1
revision 466

thanks
markybob
Compulsive Poster
Compulsive Poster
Posts: 1230
Joined: Thu May 24, 2007 11:27 pm
Location: Chicago, IL, USA
Contact:

Re: Can not compile

Post by markybob »

irfan wrote:I have a problem...

Code: Select all

irfan@ubuntu:~/deluge$ python setup.py build
Attempting to detect your system information
32bit x86 system detected
Linux operating system detected
Libraries nomt
running build
running build_py
creating build
creating build/lib.linux-i686-2.5
creating build/lib.linux-i686-2.5/deluge
copying src/plugins.py -> build/lib.linux-i686-2.5/deluge
copying src/deluge_stats.py -> build/lib.linux-i686-2.5/deluge
copying src/__init__.py -> build/lib.linux-i686-2.5/deluge
copying src/ipc_manager.py -> build/lib.linux-i686-2.5/deluge
copying src/interface.py -> build/lib.linux-i686-2.5/deluge
copying src/dgtk.py -> build/lib.linux-i686-2.5/deluge
copying src/core.py -> build/lib.linux-i686-2.5/deluge
copying src/common.py -> build/lib.linux-i686-2.5/deluge
copying src/dialogs.py -> build/lib.linux-i686-2.5/deluge
copying src/pref.py -> build/lib.linux-i686-2.5/deluge
running build_ext
building 'deluge_core' extension
creating build/temp.linux-i686-2.5
creating build/temp.linux-i686-2.5/src
creating build/temp.linux-i686-2.5/libtorrent
creating build/temp.linux-i686-2.5/libtorrent/src
creating build/temp.linux-i686-2.5/libtorrent/src/kademlia
gcc -pthread -fno-strict-aliasing -Wall -DNDEBUG -O2 -fPIC -I./libtorrent -I./libtorrent/include -I./libtorrent/include/libtorrent -I/usr/include/python2.5 -I/usr/include/python2.5 -c src/deluge_core.cpp -o build/temp.linux-i686-2.5/src/deluge_core.o -Wno-missing-braces
In file included from src/deluge_core.cpp:41:
./libtorrent/include/libtorrent/hasher.hpp:45:25: error: openssl/sha.h: No such file or directory
./libtorrent/include/libtorrent/hasher.hpp:101: error: ‘SHA_CTX’ does not name a type
./libtorrent/include/libtorrent/hasher.hpp: In constructor ‘libtorrent::hasher::hasher()’:
./libtorrent/include/libtorrent/hasher.hpp:75: error: ‘m_context’ was not declared in this scope
./libtorrent/include/libtorrent/hasher.hpp:75: error: ‘SHA1_Init’ was not declared in this scope
./libtorrent/include/libtorrent/hasher.hpp: In constructor ‘libtorrent::hasher::hasher(const char*, int)’:
./libtorrent/include/libtorrent/hasher.hpp:78: error: ‘m_context’ was not declared in this scope
./libtorrent/include/libtorrent/hasher.hpp:78: error: ‘SHA1_Init’ was not declared in this scope
./libtorrent/include/libtorrent/hasher.hpp:81: error: ‘SHA1_Update’ was not declared in this scope
./libtorrent/include/libtorrent/hasher.hpp: In member function ‘void libtorrent::hasher::update(const char*, int)’:
./libtorrent/include/libtorrent/hasher.hpp:87: error: ‘m_context’ was not declared in this scope
./libtorrent/include/libtorrent/hasher.hpp:87: error: ‘SHA1_Update’ was not declared in this scope
./libtorrent/include/libtorrent/hasher.hpp: In member function ‘libtorrent::sha1_hash libtorrent::hasher::final()’:
./libtorrent/include/libtorrent/hasher.hpp:93: error: ‘m_context’ was not declared in this scope
./libtorrent/include/libtorrent/hasher.hpp:93: error: ‘SHA1_Final’ was not declared in this scope
./libtorrent/include/libtorrent/hasher.hpp: In member function ‘void libtorrent::hasher::reset()’:
./libtorrent/include/libtorrent/hasher.hpp:97: error: ‘m_context’ was not declared in this scope
./libtorrent/include/libtorrent/hasher.hpp:97: error: ‘SHA1_Init’ was not declared in this scope
error: command 'gcc' failed with exit status 1
revision 466

thanks
you need to install libssl-dev
User avatar
irfan
Leecher
Leecher
Posts: 70
Joined: Sun Jun 03, 2007 5:36 pm
Location: Poland

Re: Can not compile

Post by irfan »

Thanks ...it works now :P
Post Reply