Subscribe

Compiling Issue

  1. 2010-07-30 10:42:21 PDT
    Hi guys, I was wondering if you could help me solve my little compiling problem. 1. I downloaded all the required dependencies - according to the site instructions 2. Followed the instructions and was fine until the ./make.sh command, in which I get the following error: ./make.sh ../misc/bt_misc.cpp:4:29: error: boost/foreach.hpp: No such file or directory ../misc/bt_misc.cpp: In function âstd::string escape_string(const std::string&)â: ../misc/bt_misc.cpp:19: error: expected primary-expression before âcharâ ../misc/bt_misc.cpp:19: error: âBOOST_FOREACHâ was not declared in this scope ../misc/bt_misc.cpp:20: error: expected `;' before â{â token ../misc/bt_misc.cpp:354: error: expected `}' at end of input ../misc/bvalue.cpp:4:29: error: boost/foreach.hpp: No such file or directory ../misc/bvalue.cpp: In member function âint Cbvalue::pre_read() constâ: ../misc/bvalue.cpp:289: error: expected primary-expression before âiâ ../misc/bvalue.cpp:289: error: âBOOST_FOREACHâ was not declared in this scope ../misc/bvalue.cpp:290: error: expected `;' before âvâ ../misc/bvalue.cpp:296: error: expected primary-expression before âiâ ../misc/bvalue.cpp:296: error: âBOOST_FOREACHâ was not declared in this scope ../misc/bvalue.cpp:297: error: expected `;' before âvâ In file included from config.cpp:1: stdafx.h:3:29: error: boost/foreach.hpp: No such file or directory In file included from connection.cpp:1: stdafx.h:3:29: error: boost/foreach.hpp: No such file or directory In file included from epoll.cpp:1: stdafx.h:3:29: error: boost/foreach.hpp: No such file or directory In file included from server.cpp:1: stdafx.h:3:29: error: boost/foreach.hpp: No such file or directory server.cpp: In member function âint Cserver::run()â: server.cpp:42: error: expected primary-expression before âjâ server.cpp:42: error: âBOOST_FOREACHâ was not declared in this scope server.cpp:43: error: expected `;' before â{â token server.cpp:962: error: expected `}' at end of input In file included from tcp_listen_socket.cpp:1: stdafx.h:3:29: error: boost/foreach.hpp: No such file or directory In file included from tracker_input.cpp:1: stdafx.h:3:29: error: boost/foreach.hpp: No such file or directory In file included from transaction.cpp:1: stdafx.h:3:29: error: boost/foreach.hpp: No such file or directory In file included from udp_listen_socket.cpp:1: stdafx.h:3:29: error: boost/foreach.hpp: No such file or directory In file included from XBT Tracker.cpp:1: stdafx.h:3:29: error: boost/foreach.hpp: No such file or directory
  2. 2010-07-30 10:46:57 PDT
    You need to install the boost library. Which OS are you running? Have you installed boost and boost-devel?
  3. 2010-07-30 11:20:12 PDT
    Forgot to mention. I am running CentOS. I installed whatever dependencies are included in this command: yum install boost-devel gcc-c++ mysql-devel subversion P.S. Thanks visigod, once I get this fixed I'm going to try and install your Joomla Extension frontend.
  4. 2010-07-30 11:25:15 PDT
    Forgot to mention that CentOS installed boost-devel-1.33.
  5. 2010-07-30 14:18:32 PDT
    >= 1.35 is required
  6. 2010-07-30 16:07:01 PDT
    Thanks olafvdspek. Would you have any idea as to where I can get a prepackaged version or how I can install it? I just started learning CentOS.
  7. 2010-07-30 16:48:44 PDT
    http://www.boost.org/
  8. 2010-07-30 21:36:12 PDT
    You can remove the old boost libraries from your server (yum remove boost boost-devel). Then you can install the latest boost version with the following commands: cd /usr/local/src/ wget http://sourceforge.net/projects/boost/files/boost/1.43.0/boost_1_43_0.tar.gz/download tar xvzf boost_1_43_0.tar.gz cd boost_1_43_0 ./bootstrap.sh ./bjam install If you still have problems just reply back
  9. 2010-08-10 17:54:24 PDT
    I believe boost installed just fine. I ran the ./make.sh in the Tracker folder and it created xbt_tracker successfully. I launched ./xbt_tracker and got no message. When I tried going to http://mysitename.com:2710/announce I got no message. I also tried announcing to it and I got a "Announce timed out". I ran netstat -vatn and this is what I got, so I don't know why it is not working: http://img713.imageshack.us/img713/9364/picture2xz.png
  10. 2010-08-11 00:14:29 PDT
    Try /debug If there's a time out, it's a firewall issue.
  11. 2010-08-12 07:44:51 PDT
    Yep, you were right olafvdspek, it was iptables. Thanks a lot you guys!
Jump To:
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.