This repository has been archived by the owner. It is now read-only.

Building error: libtorrent-rasterbar with --enable-python-binding #24923

Closed
Zhomart opened this Issue Dec 4, 2013 · 10 comments

Comments

Projects
None yet
6 participants
@Zhomart

Zhomart commented Dec 4, 2013

I added --with-python-binding to Formula by brew edit libtorrent-rasterbar as in documentation: http://www.libtorrent.org/python_binding.html

  def install
    system "./configure", "--disable-debug",
                          "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--enable-python-binding"

    system "make install"
  end
$ brew install libtorrent-rasterbar
.....
checking python extra linking flags... -u _PyMac_Error Python.framework/Versions/2.7/Python
checking consistency of all components of python development environment... no
configure: error: in `/private/tmp/libtorrent-rasterbar-ol4W/libtorrent-rasterbar-0.16.12':
configure: error:
  Could not link test program to Python. Maybe the main Python library has been
  installed in some non-standard library path. If so, pass it to configure,
  via the LDFLAGS environment variable.
  Example: ./configure LDFLAGS="-L/usr/non-standard-path/python/lib"
  ============================================================================
   ERROR!
   You probably have to install the development version of the Python package
   for your distribution.  The exact name of this package varies among them.
  ============================================================================

See `config.log' for more details

Here is brew install libtorrent-rasterbar logs https://gist.github.com/Zhomart/7787563
Results of brew doctor https://gist.github.com/Zhomart/7787589
Results of brew --config https://gist.github.com/Zhomart/7787600

I tried to do this, but it didn't help:
./configure --prefix=/usr/local --enable-python-binding \ LDFLAGS="-L/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib"
Returns same problem

@mistydemeo

This comment has been minimized.

Contributor

mistydemeo commented Dec 4, 2013

Can you provide the config.log from ~/Library/Logs/Homebrew/libtorrent-rasterbar?

@Zhomart

This comment has been minimized.

Zhomart commented Dec 5, 2013

@dylanvee

This comment has been minimized.

Contributor

dylanvee commented Jan 2, 2014

I just encountered this problem as well. Has anyone found a workaround?

@adamv

This comment has been minimized.

Contributor

adamv commented Feb 14, 2014

The version we bundle doesn't build for me:

Checking for boost libraries:
checking for boostlib >= 1.36... yes
checking whether the Boost::System library is available... yes
configure: error: Boost.System library not found. Try using --with-boost-system=lib

I have a non-standard install so that may be tripping it up.

@adamv

This comment has been minimized.

Contributor

adamv commented Feb 14, 2014

Got past the boost issue locally.

@adamv

This comment has been minimized.

Contributor

adamv commented Mar 7, 2014

MacPorts does some things here to enable Python (see bottom of Portfile): https://trac.macports.org/browser/trunk/dports/net/libtorrent-rasterbar/Portfile

@sharkone

This comment has been minimized.

Contributor

sharkone commented Mar 26, 2014

I manage to compile by adding:

"--enable-python-binding",
"PYTHON_EXTRA_LDFLAGS= "

As can be seen in the portfile mentioned above. The space at the end is important.

I suppose this should become an option on the formula but I'm very new to Homebrew (few hours). So maybe someone else should do the proper pull request?

@MikeMcQuaid

This comment has been minimized.

Member

MikeMcQuaid commented Mar 26, 2014

@sharkone Give it a go and we'll help you. Create a non-master branch with that committed on it and a pull request. Thanks!

@sharkone

This comment has been minimized.

Contributor

sharkone commented Mar 26, 2014

Here you go!

@adamv

This comment has been minimized.

Contributor

adamv commented Apr 10, 2014

Presumed fixed by the other PR.

@adamv adamv closed this Apr 10, 2014

@Homebrew Homebrew locked and limited conversation to collaborators Feb 17, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.