[Dip] help installing dippy on anaconda

Hugh Medal hugh.medal at msstate.edu
Tue Sep 6 09:30:08 EDT 2016


I am using the Python 2.7 that comes with Anaconda:

*Mississippis-Mac-Pro:~ hm568$ python*

*Python 2.7.12 |Anaconda 4.0.0 (x86_64)| (default, Jul  2 2016, 17:43:17) *

*[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)] on
darwin*

*Type "help", "copyright", "credits" or "license" for more information.*

*Anaconda is brought to you by Continuum Analytics.*

*Please check out: http://continuum.io/thanks <http://continuum.io/thanks>
and https://anaconda.org <https://anaconda.org>*

*>>> *

I have gotten it to work with homebrew in the past, but I would like to get
it to work with Anaconda. It would be great if we could put dippy on
conda-forge! I could maybe help with that.

On Sun, Sep 4, 2016 at 11:34 AM, Ted Ralphs <ted at lehigh.edu> wrote:

> I can't replicate the behavior you're seeing because my version of Python
> (which I installed with Homebrew) is using clang to build the extension as
> well, so everything works fine. What python are you using?
>
> Cheers,
>
> Ted
>
> On Sun, Sep 4, 2016 at 3:51 PM, Ted Ralphs <ted at lehigh.edu> wrote:
>
>> My guess is that this has to do with Dip being built with clang and
>> Python trying to use gcc. Do you have homebreww gcc installed? Can you try
>> to configure Dip with CC=gcc CXX=g++. In the meantime, I'll try to
>> replicate on my own machine.
>>
>> Cheers,
>>
>> Ted
>>
>> On Wed, Aug 31, 2016 at 4:50 PM, Hugh Medal <hugh.medal at msstate.edu>
>> wrote:
>>
>>> Hello,
>>>
>>> I am trying to install dippy to my anaconda distribution of python
>>> (/anaconda/bin/python). I am running Mac OS X.
>>>
>>> Here is the steps I have followed:
>>>
>>> 1. installed Dip to /Users/hm568/git/Dip-0.92/ using:
>>>
>>> cd /Users/hm568/git/
>>> git clone --branch=stable/0.92 https://github.com/coin-or/Dip
>>> <https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_coin-2Dor_Dip&d=CwMFaQ&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=rnUB298ByR5BGgo6vv2b6g&m=kXWT_HHgzq4YoNtmQlEDTyfXT_d9TY6ezwOxO5hHRqY&s=mLiiUil8mhqUbq0E3r7M48P_KFMhWpd7-O1BRMI2HyM&e=>
>>> Dip-0.92
>>> cd Dip-0.92
>>> git clone --branch=stable/0.8 https://github.com/coin-or-too
>>> ls/BuildTools/
>>> <https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_coin-2Dor-2Dtools_BuildTools_&d=CwMFaQ&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=rnUB298ByR5BGgo6vv2b6g&m=kXWT_HHgzq4YoNtmQlEDTyfXT_d9TY6ezwOxO5hHRqY&s=F2fe-IyBQvJDpw61VYJZ00paJYrHu73UBvd9d-6NHWs&e=>
>>> BuildTools/get.dependencies fetch
>>> ./configure --enable-static --disable-shared
>>> make
>>> make install
>>>
>>> 2. installed dippy by doing the following
>>>
>>> ws106-17:Dip hm568$ COIN_INSTALL_DIR=/Users/hm568/git/Dip-0.92/
>>> /anaconda/bin/python setup.py install
>>>
>>> running install
>>>
>>> running bdist_egg
>>>
>>> running egg_info
>>>
>>> writing requirements to coinor.dippy.egg-info/requires.txt
>>>
>>> writing coinor.dippy.egg-info/PKG-INFO
>>>
>>> writing namespace_packages to coinor.dippy.egg-info/namespac
>>> e_packages.txt
>>>
>>> writing top-level names to coinor.dippy.egg-info/top_level.txt
>>>
>>> writing dependency_links to coinor.dippy.egg-info/dependency_links.txt
>>>
>>> reading manifest file 'coinor.dippy.egg-info/SOURCES.txt'
>>>
>>> writing manifest file 'coinor.dippy.egg-info/SOURCES.txt'
>>>
>>> installing library code to build/bdist.macosx-10.6-x86_64/egg
>>>
>>> running install_lib
>>>
>>> running build_py
>>>
>>> running build_ext
>>>
>>> building '_dippy' extension
>>>
>>> gcc -fno-strict-aliasing -I//anaconda/include -arch x86_64 -DNDEBUG -g
>>> -fwrapv -O3 -Wall -Wstrict-prototypes -D__DECOMP_LP_CLP__
>>> -I/Users/hm568/git/Dip-0.92/include/coin -I/usr/local/gurobi/linux64/include
>>> -I/usr/local/cplex/include/ilcplex -I/anaconda/include/python2.7 -c
>>> src/dippy/DippyDecompAlgo.cpp -o build/temp.macosx-10.6-x86_64-
>>> 2.7/src/dippy/DippyDecompAlgo.o
>>>
>>> In file included from src/dippy/DippyDecompAlgo.cpp:3:
>>>
>>> In file included from src/dippy/DippyDecompAlgo.h:4:
>>>
>>> In file included from /Users/hm568/git/Dip-0.92/incl
>>> ude/coin/Decomp.h:55:
>>>
>>> In file included from /Users/hm568/git/Dip-0.92/incl
>>> ude/coin/CoinPackedMatrix.hpp:10:
>>>
>>> /Users/hm568/git/Dip-0.92/include/coin/CoinTypes.hpp:15:10: fatal
>>> error: 'cstdint' file not found
>>>
>>> #include <cstdint>
>>>
>>>          ^
>>>
>>> 1 error generated.
>>>
>>> error: command 'gcc' failed with exit status 1
>>>
>>>
>>> Can you provide any guidance on this error?
>>>
>>>
>>> Thanks,
>>>
>>> Hugh
>>>
>>> --
>>> *Hugh Medal*
>>> Assistant Professor
>>> Industrial and Systems Engineering
>>> Mississippi State University
>>> Office: 260K McCain
>>> Office: 662-325-3923
>>> Email: hmedal at i <hmedal at uark.edu>se.msstate.edu
>>> <https://urldefense.proofpoint.com/v2/url?u=http-3A__se.msstate.edu_&d=CwMFaQ&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=rnUB298ByR5BGgo6vv2b6g&m=kXWT_HHgzq4YoNtmQlEDTyfXT_d9TY6ezwOxO5hHRqY&s=xBlUgPCbwLTlTLQ27VxalW1z5pRUoBwEMsYr1Ah7dhk&e=>
>>> Website: hm568.ise.msstate.edu
>>> <https://urldefense.proofpoint.com/v2/url?u=http-3A__hm568.ise.msstate.edu_&d=CwMFaQ&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=rnUB298ByR5BGgo6vv2b6g&m=kXWT_HHgzq4YoNtmQlEDTyfXT_d9TY6ezwOxO5hHRqY&s=XG-KaqzwB4FsdsjYTjZxByVkh6ssDTq2TAhTnjemxZg&e=>
>>> Office hours: hughmedal "dot" youcanbook "dot" me
>>>
>>> _______________________________________________
>>> Dip mailing list
>>> Dip at list.coin-or.org
>>> https://urldefense.proofpoint.com/v2/url?u=http-3A__list.coi
>>> n-2Dor.org_mailman_listinfo_dip&d=CwICAg&c=Ngd-ta5yRYsqeUsED
>>> gxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=rnUB298ByR5BGgo6vv2b6g&m=kXWT_
>>> HHgzq4YoNtmQlEDTyfXT_d9TY6ezwOxO5hHRqY&s=1YdaF6Hv3QZbwPsK3G0
>>> LBfYFh_gH77-ieRdoAAjqqHY&e=
>>>
>>
>>
>>
>> --
>> Dr. Ted Ralphs
>> Professor, Lehigh University
>> (610) 628-1280
>> ted 'at' lehigh 'dot' edu
>> coral.ie.lehigh.edu/~ted
>>
>
>
>
> --
> Dr. Ted Ralphs
> Professor, Lehigh University
> (610) 628-1280
> ted 'at' lehigh 'dot' edu
> coral.ie.lehigh.edu/~ted
>



-- 
*Hugh Medal*
Assistant Professor
Industrial and Systems Engineering
Mississippi State University
Office: 260K McCain
Office: 662-325-3923
Email: hmedal at i <hmedal at uark.edu>se.msstate.edu
Website: hm568.ise.msstate.edu
Office hours: hughmedal "dot" youcanbook "dot" me
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/dip/attachments/20160906/1d3546ab/attachment.html>


More information about the Dip mailing list