본문 바로가기

Eureka/Linux

[Solution] qBittorrent Configure Error

Linux Mint에서 torrent를 지원하긴 하지만 좀더 다채로운 기능을 이용하기 위해서
qBittorrent를 설치 하려던 중 에러가 발생하였습니다.
 configure을 실행 하면...

Configuring qbittorrent ...
Verifying Qt 4 build environment ... fail

Reason: Unable to find the 'qmake' tool for Qt 4.

Be sure you have a proper Qt 4.0 build environment set up.  This means not
just Qt, but also a C++ compiler, a make tool, and any other packages
necessary for compiling C++ programs.

If you are certain everything is installed, then it could be that Qt 4 is not
being recognized or that a different version of Qt is being detected by
mistake (for example, this could happen if $QTDIR is pointing to a Qt 3
installation).  At least one of the following conditions must be satisfied:

 1) --qtdir is set to the location of Qt
 2) $QTDIR is set to the location of Qt
 3) QtCore is in the pkg-config database
 4) qmake is in the $PATH

This script will use the first one it finds to be true, checked in the above
order.  #3 and #4 are the recommended options.  #1 and #2 are mainly for
overriding the system configuration.

위와 같은 문구가 뜨는 것이지요 ㅋㅋ...
우선 conf.log에 상세한 정보가 적혀있다 하니 참고해봅시다.

<qBittorrent설치시 필요한 것들> ● 기본 빌드시 필요한 것 $ sudo apt-get install build-essential libtool automake autoconf subversion pkg-config ● Boost 와 SSL Libraries(라이브러리) $ sudo apt-get install libboost-date-time-dev libboost-dev libboost-filesystem-dev \     libboost-iostreams-dev libboost-program-options-dev libboost-regex-dev \     libboost-serialization-dev libboost-signals-dev libboost-test-dev \     libboost-thread-dev libssl-dev ● Qt4 Libraries $ sudo apt-get install libqt4-dev libtorrent-dev ● Python(파이썬)(실행시 필요한 것, 검색 엔진을 위하기도함) $ sudo apt-get install python


<Compiling Libtorrent> (토렌트 라이브러리 컴파일링)
● 우선 SVN에서 libtorrent-rasterbar를 설치하기 위해 폴더를 생성한다.
$ mkdir -p qBittorrent_compiling
$ cd qBittorrent_compiling

● Libtorrent v0.16 다운로드
svn co https://libtorrent.svn.sourceforge.net/svnroot/libtorrent/branches/RC_0_16/ libtorrent

● svn branch 안에 libtorrent폴더에 들어간뒤에 autotool을 실행해준다.
$ cd libtorrent
$ ./autotool.sh

● 자 그럼 이제 configure을 아래 커맨드처럼 실행하자
$ ./
configure --disable-debug --prefix=/usr && make clean && make

● 이제 아래 커맨드를 입력함으로써 libtorrent를 설치하고 사용할 수 있다.
sudo make uninstall
sudo make install-strip
(libtorrent building에 대한 더 많은 정보는 (libtorrent downloading and building 링크에서 참조하세요)


<qBittorrent Compiling> (qBittorrent를 그래픽 interface(인터페이스)로 사용하고자 할 경우)
● Git에서 qBittorrent최신버전을 가져온다
cd .. (qBittorrent_compiling 폴더로 이동)
$ git 
clone https://github.com/qbittorrent/qBittorrent.git
    (만약 git이 설치가 되어 있지 않으면 sudo apt-get install git)

● 위 과정이 완료되면 컴파일 후 설치 합시다.
$ cd qBittorrent
$ ./configure --prefix=/usr
$ make
$ sudo make install


<설치 완료되면 실행>
$ qbittorrent




qBittorrent를 추천하는 이유는 아래와 같은 속성들이 너무 ㅋㅋ.. 대박;;

  • Written in: C++
  • Based on: libtorrent (Rasterbar)
  • Interface: GUI(Qt), CLI(poor), Web
  • Encryption: Yes
  • Mainline DHT: Yes
  • Magnet link: Yes
  • Peer Exchange: Yes
  • UPnP: Yes
  • NAT: Yes
  • Local Peer Discovery: Yes
  • IPv6 support: Yes
  • Super Seeding: Yes
  • Selective downloads: Yes
  • Search engine: Yes
  • RSS: Yes
  • Remote control: Yes
  • Prioritization: Yes
  • Proxy: No