[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-dev] problems building on osx 10.9.4



Arlo,

Thanks, I got the build working with a local build/path of libevent2, just as you described. ÂI used brew for the other dependencies.

I am able to run ./scripts/test/coverage coverage-output without problems, but running:
$ make coverage-html

Has the following problem: [http://0bin.net/paste/9DYCmagMbr8HNiw4#rtSQ-ia0BrOS1nzilEVu3dBlUKrenXGRyVXDIMiHaWK]
gcov doesn't have a -v switch, just -version (this was from lcov installed via $ brew install lcov)

I got chutney after a little bit of searching. ÂThe documentation doesn't make clear that chutney is part of the tor projects, located here: [https://gitweb.torproject.org/chutney.git]

One of errors I get from running $ make test-network is:
./chutney: line 4: python2: command not found

This looks like a platform problem. ÂThat's why I'm wondering if it's better to work on this code on some flavor of Linux system instead of osx.

Thanks,
Alan


On Thu, Aug 28, 2014 at 11:49 PM, Arlo Breault <arlo@xxxxxxxxxxxxxx> wrote:
Try,

 cd
 mkdir testing
 wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
 tar xzvf libevent-2.0.21-stable.tar.gz
 cd libevent-2.0.21-stable
 ./configure --prefix=$HOME/testing
 make install
 cd ..
 git clone https://git.torproject.org/tor.git
 cd tor
 ./autogen.sh
 ./configure --prefix=$HOME/testing --with-libevent-dir=$HOME/testing
 make install

 ~/testing/bin/tor

You may also consider using a package manager for dependencies, http://brew.sh/


On Thu, Aug 28, 2014 at 9:33 AM, Alan Fay <emptyset@xxxxxxxxxxxxxxxxxxx> wrote:
> Hello!
>
> I'm trying to get a working build of Tor so I can learn more about working
> on item "m. Improve test coverage in Tor". Apologies ahead of time for
> being green; this seemed to be the most accessible place to start
> contributing...I read through doc/HACKING and I'm slowly working through
> that.
>
> I'm running osx 10.9.4. I ran:
>
> $ ./autogen.sh
> $ ./configure
> ...
> checking for libevent directory... configure: WARNING: We found the
> libraries for libevent, but we could not find the C header files. You may
> need to install a devel package.
> configure: error: Missing headers; unable to proceed.
>
> I installed libevent-2.0.21-stable from source, and then nickm on #tor-dev
> helped me see some permissions issues in /usr/local/include/event2 and
> /usr/local/lib/libevent* ; please see:
> [http://0bin.net/paste/fuObUINKL1EOICf8#jJuGjo2wv65-7QNcHLGBcFPsNdAwhRlWmg6OWfzCuLC]
>
> I found reference to this error on the tor-relay mailing list here, but I
> didn't get far with any of those suggested fixes, and it's also for osx
> 10.4. This is the first hit when I google the error:
> [https://lists.torproject.org/pipermail/tor-relays/2012-January/001192.html]
>
> Thanks,
> Alan
>
> _______________________________________________
> tor-dev mailing list
> tor-dev@xxxxxxxxxxxxxxxxxxxx
> https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev
>
_______________________________________________
tor-dev mailing list
tor-dev@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev

_______________________________________________
tor-dev mailing list
tor-dev@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-dev