Boost install with python

I'm having a few difficulties compiling and installing boost 1.34.1 with python. As I understand it I can either compile and link with gcc or with sun studio12, both of which are installed with SXDE. Going down either road seems to lead me dead ends.
Using gcc I get errors like:
gcc.link.dll bin.v2/libs/test/build/gcc-3.4.3/debug/threading-multi/libboost_unit_test_framework-gcc34-mt-d-1_34_1.so.1.34.1
/usr/ccs/bin/ld: illegal option -- start-group
/usr/ccs/bin/ld: illegal option -- end-group
usage: ld [-6:abc:d:e:f:h:il:mo:p:rstu:z:B:CD:F:GI:L:M:N:P:Q:R:S:VY:?] file(s)which leads me to believe that I need to use the gnu linker (gld) and not the sun. I have not had any luck changing boost's configuration to explicitly do this. Even trying to modify the user-config.jam to say:
using gcc : <linker-type>gnu; as mentioned in: http://lists.boost.org/boost-users/2007/10/31284.php
So then I resorted to trying to use Sun Studio 12, which works fine until I get the problem mentioned at http://blogs.sun.com/sga/entry/boost_and_sun_studio_12#comments which suggests that I need to apply patch-01 for Sun Studio 12. Unfortunately, I'm not sure where to find the patch.
Anybody with ideas for solving both problems would be appreciated.
Thanks,
Karl
I would like information on how to resolve both problems.

I had the same problem. I was able to solve it by manually specifying the linker to use. The sun linker and the gnu linker have very different parameters, and Boost does not autodetect which linker you are using. Based on your output, /usr/ccs/bin/ld is the sun linker, not the gnu linker. Many solaris platforms that compile with gcc use the sun linker. Sun's gcc distribution does this by default. Also, if you built gcc yourself, it will use whatever linker it was built with, which is probably the sun linker unless you explicitly configured it to use the gnu linker.
After you run the Boost configure script, edit user-config.jam.
You should see something like:
using gccYou need to change it to something like
using gcc : : : <linker-type>sun ; Note that you need 3 semicolons and you need to set linker type to sun, not gnu.
You should now be able to run make and have Boost link correctly.

Similar Messages

  • Trying to install pgmagick with python 3

    Hello,
    I'm trying to get pgmagick to work with Python 3.
    First thing I had to do was linking to the Python 3 boost libraries, by changing lines 83 and following on setup.py from
    if _version >= (3, ):
    boost_lib_target_files.append("boost_python-py%s%s" % (_version[0], _version[1]))
    boost_lib_target_files.append("boost_python-mt-py%s%s" % (_version[0], _version[1]))
    #gentoo appends the python version numbers to the boost_python libraries
    boost_lib_target_files.append("boost_python-%s.%s" % (_version[0], _version[1]))
    boost_lib_target_files.append("boost_python-mt")
    to
    if _version >= (3, ):
    boost_lib_target_files.append("boost_python-py%s%s" % (_version[0], _version[1]))
    # ArchLinux uses boost_python3
    boost_lib_target_files.append("boost_python%s" % (_version[0]))
    boost_lib_target_files.append("boost_python-mt-py%s%s" % (_version[0], _version[1]))
    #gentoo appends the python version numbers to the boost_python libraries
    boost_lib_target_files.append("boost_python-%s.%s" % (_version[0], _version[1]))
    boost_lib_target_files.append("boost_python-mt")
    Now, when I launch setup.py, I get the following error:
    $ sudo python setup.py install
    include header path: /usr/include/GraphicsMagick/
    Found boost lib: /usr/lib64/libboost_python3
    boost lib: boost_python3
    library path: /usr/lib64/libGraphicsMagick++
    Libraries: ['boost_python3', 'GraphicsMagick++']
    GraphicsMagick version: 1.3.19
    running install
    Traceback (most recent call last):
    File "setup.py", line 174, in <module>
    keywords="GraphicsMagick ImageMagick graphics boost image")
    File "/usr/lib/python3.4/distutils/core.py", line 148, in setup
    dist.run_commands()
    File "/usr/lib/python3.4/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
    File "/usr/lib/python3.4/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
    File "/usr/lib/python3.4/site-packages/setuptools/command/install.py", line 67, in run
    self.do_egg_install()
    File "/usr/lib/python3.4/site-packages/setuptools/command/install.py", line 103, in do_egg_install
    cmd.ensure_finalized() # finalize before bdist_egg munges install cmd
    File "/usr/lib/python3.4/distutils/cmd.py", line 107, in ensure_finalized
    self.finalize_options()
    File "/usr/lib/python3.4/site-packages/setuptools/command/easy_install.py", line 313, in finalize_options
    self.index_url, search_path=self.shadow_path, hosts=hosts,
    File "/usr/lib/python3.4/site-packages/setuptools/package_index.py", line 269, in __init__
    Environment.__init__(self,*args,**kw)
    File "/usr/lib/python3.4/site-packages/pkg_resources.py", line 799, in __init__
    self.scan(search_path)
    File "/usr/lib/python3.4/site-packages/pkg_resources.py", line 829, in scan
    self.add(dist)
    File "/usr/lib/python3.4/site-packages/pkg_resources.py", line 849, in add
    dists.sort(key=operator.attrgetter('hashcmp'), reverse=True)
    TypeError: unorderable types: str() < NoneType()
    I am quite new to building Python packages, so I'm not sure about what is going wrong.
    Any help is appreciated.
    Thanks,
    gm

    I get the same issue installing another package using setuptools and python3 any solutions so far ?
    Thanks.

  • How do I install a version of vim with Python support?

    I'm trying to install a version of vim with Python support, but for some reason I can't seem to find anything useful when I search.
    So far I've found posts that say arch doesn't have one built with Python support, and use this <broken link> AUR package. I've search AUR for "vim python" which turned up nothing. There *does* exist extra/gvim-python3, but when I install that, then vim (not gvim) still tells me "Error: Required vim compiled with +python"
    This search:
    https://duckduckgo.com/?t=lm&q=arch+lin … on+support
    Provides:
    https://bbs.archlinux.org/viewtopic.php … 1#p1070281 - Only a link to a bug report
    https://bbs.archlinux.org/viewtopic.php … 0#p1144210 - Post with the 404'd AUR link
    What I finally found was this Gist with directions on using the ABS:
    https://gist.github.com/MicahElliott/3048622
    Ultimately you'll have to change the particular tar.xz files you use in the pacman -U steps, but this should get you vim with Python enabled.

    I have downloaded vim by cloning The Vim Mercurial repository.
    hg clone https://vim.googlecode.com/hg/ ~/bin/vim_bin
    Then i have a this script to install it in my own ~/bin/ dir.
    #!/bin/bash
    cd /home/myuser/bin/vim_bin/src
    echo "---Configure----"
    ./configure --prefix=/usr --localstatedir=/var/lib/vim \
    --with-features=big --with-compiledby="Custom Vim insall" \
    --enable-gpm --enable-acl --with-x=no \
    --disable-gui --enable-multibyte --enable-cscope \
    --enable-netbeans --enable-perlinterp \
    --enable-rubyinterp --enable-luainterp \
    --enable-pythoninterp --with-python-config-dir=/usr/lib/python2.7/config \
    --enable-python3interp --with-python3-config-dir=/usr/lib/python3.4/config > my_log
    echo "=== Make ==="
    make >> my_log
    echo "==== Install ===="
    make install >> my_log
    Hope it helps some one

  • How to install Berkeley DB to use with Python 3?

    I have heard that Berkeley DB is a good database.
    It seems it used to included in Python 2.x standard libraries but got excluded from 3.x version.
    I want to use only Python 3.x, so I need to install Berkeley DB somehow to use it with Python 3.x.
    Could you give me a step-by-step guide how to do it?
    Thank you.

    It should be but it is not.
    setup.py gives errors:
    C:\Users\3X\Desktop\bsddb3-5.3.0>python setup.py
    Traceback (most recent call last):
    File "setup.py", line 7, in <module>
    import setup3
    File "C:\Users\3X\Desktop\bsddb3-5.3.0\setup3.py", line 322, in <module>
    db_h_lines = open(os.path.join(incdir, 'db.h'), 'r').readlines()
    FileNotFoundError: [Errno 2] No such file or directory: 'db/include\\db.h'
    I am using Windows 7 x64, Python 3.3.2.
    Thank you
    Edited by: 1009721 on Jun 6, 2013 11:23 PM

  • 5530XM cannot install scribble+python via software...

    Just upgraded to v40.0.003 firmware on 5530XM and then tried to update software via phone. Selected only scribble with python from the list of updates. Update downloads but fails to install every time I try.
    Also tried to update via NSU but I get "Missing dependency" error with the following information:
    "Installation failed because the update depends on another update whose installation failed. Please contact the vendor of the application update."
    Latest OVI Suite gave the same results:
    "Cannot install this application."
    "There's a problem with installing: Scribble. There was a problem with updating the application Scribble because the update package is faulty."
    I remember I had no problems installing scribble+python on v32 firmware but maybe it's just luck.
    I think I need to delete some temp file on phone memory which indicates that scribble is downloaded and then try installing it again from scratch. Just don't know how to do it. Any help will be appreciated. Thanks.

    Sorry for replying late, but I had just found a solution. I had the same problem. First download and install  , than try to install scribble+python. It worked for me. Hope I helped
    Moderators notes: Link removed

  • [Solved] Install package python-evdev from AUR

    I belive this is the correct section to post this but I have a problem installing the package python-evdev where I get the error ( Unsupported package: Potentially dangerous ! )
    after trying to install with yaourt and pip install python-evdev results in bash: pip: command not found even after checking that extra/python-setuptools 1:5.2-1 is installed
    and extra/python2-setuptools 1:5.2-1 is installed.
    I realize there are other modules for hooking x server events but this one I have already written 200 lines of code for and is key to my application working.  I was able to install
    and utilize this module in ubuntu but cannot seem to get it installed in archlinux.  Any guidance would be apreciated.
    Last edited by meschael (2014-06-25 00:34:58)

    I asumed pip came with setup tools, so following ids1024's lead I did a pacman -S python-pip which solved the command not found issue.  I downloaded and untar'ed the package from AUR and issued a makepkg -s from within the extracted folder.  There seems to be an issue with the licence which I can now see has to do with the person who make the package
    I did not realize the dynamics of how AUR works because I am new to arch, so I appologize if I bothered anyone.
    [Update] I have abondoned the idea of getting pythons evdev module installed as I have located a python3-xlib module which seems to have installed correctly, incidently I was unable to locate a xlib ported to python3 in my other distro, but found it in AUR here so this should work, will have to adapt my code but not the end of the world.  Else if (Xlib != WORKING): work directly with /dev/input/eventn using root
    Last edited by meschael (2014-06-25 00:34:03)

  • Failing to install the python Numeric library

    I have the latest Xcode 3.1.2 developer tools installed. I need to install the python Numeric library since I want to use existing python modules which were developed several years ago using that library. I downloaded the Numeric-24.2 tar file from Sourceforge and began the install process with the command:
    python setup.py build
    Within a minute, the install process stopped with the last several lines being:
    gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DMACOSX -I/usr/include/ffi -DENABLE_DTRACE -arch i386 -arch ppc -pipe -IInclude -IPackages/FFT/Include -IPackages/RNG/Include -I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c Packages/RNG/Src/ranf.c -o build/temp.macosx-10.5-i386-2.5/Packages/RNG/Src/ranf.o
    Packages/RNG/Src/ranf.c: In function ‘Mixranf’:
    Packages/RNG/Src/ranf.c:153: error: conflicting types for ‘gettimeofday’
    /usr/include/sys/time.h:211: error: previous declaration of ‘gettimeofday’ was here
    Packages/RNG/Src/ranf.c: In function ‘Mixranf’:
    Packages/RNG/Src/ranf.c:153: error: conflicting types for ‘gettimeofday’
    /usr/include/sys/time.h:211: error: previous declaration of ‘gettimeofday’ was here
    lipo: can't open input file: /var/tmp//cc83Ujvw.out (No such file or directory)
    error: command 'gcc' failed with exit status 1
    I admit I am treating the installation script as a "blackbox" and do not follow everything that it does. I had assumed that I would have no troubles on the Mac since I successfully installed the library under Linux Red Hat 3.4.6-9 by issuing the same command.
    Can someone give me guidance in getting this Numeric library installed?
    ** Kerwin

    dobbskd wrote:
    I admit I am treating the installation script as a "blackbox" and do not follow everything that it does. I had assumed that I would have no troubles on the Mac since I successfully installed the library under Linux Red Hat 3.4.6-9 by issuing the same command.
    Can someone give me guidance in getting this Numeric library installed?
    Update or fix it. According to the comments in ranf.c, that file is 12 years old. Here is where it dies:
    #if !defined(__sgi)
    int gettimeofday(struct timeval *, struct timezone *);
    #endif
    Since MacOS X isn't an SGI, it tries to define this function differently than it is defined in sys/time.h.
    It seems that the Linux version of GCC has every warning and compilation flag turned off so that bad code will compile on it.

  • Problem with python script [solved]

    I've been trying to run this script (with wlan0 as my interface) and it spits this out. I'm guessing this is due to some sort of syntax problem and should be pcap.somethingelse(interface) instead of pcap.pcap(interface) but I have no experience with python so I'm totally clueless.
    Traceback (most recent call last):
    File "mediaripper.py", line 143, in <module>
    pc = pcap.pcap(interface)
    AttributeError: 'module' object has no attribute 'pcap'
    Edit- NVM, I just had the wrong version of pypcap installed.
    Last edited by omgwtfbyobbq (2011-04-12 23:48:36)

    I hate to revive such an old thread, but what version of pypcap did you use? I'm having the same issue.

  • I am using the Order Analysis Toolkit and want to get more information about the compensation for "Reference Signal Processing", which is scarce in the manuals, the website and the examples installed with the toolkit.

    I am using the Order Analysis Toolkit and want to get more information about the compensation for "Reference Signal Processing", which is scarce in the manuals, the website and the examples installed with the toolkit.
    In particular, I am analyzing the example "Even Angle Reference Signal Processing (Digital Tacho, DAQmx).vi", whose documentation I am reproducing in the following:
    <B>DESCRIPTIONS</B>:
    This VI demonstrates how to extract even angle reference signals and remove the slow-roll errors. It uses DAQmx VIs to acquire sound or vibration signals and a digital tachometer signal. This VI includes a two-step process: acquire data at low rotational speed to extract even angle reference; use the even angle reference to remove the errors in the vibration signal acquired at normal operation.
    <B>INSTRUCTIONS</B>:
    1. Run the VI.
    2. On the <B>DAQ Configurations</B> tab, specify the <B>sample rate</B>, <B>samples per channel</B>, device and channel configurations, and tachometer channel information.
    <B>NOTE</B>: You need to use DSA PXI-447x/PXI-446x and PXI TIO device in a PXI chassis to run this example. The DSA device must be in slot 2 of the PXI chassis.
    3. Switch to <B>Extract Even Angle Reference</B> tab. Specify the <B>number of samples to acquire</B> and the <B># of revs in reference</B> which determines the number of samples in even angle reference. Click <B>Start</B> to take a one-shot data acquisition of the vibration and tachometer signals. After the acquisition, you can see the extracted even angle references in <B>Even Angle Reference</B>.
    4. Switch to the <B>Remove Slow-roll Errors</B> tab. Click <B>Start</B> to acquire data continuously and view the compensate results. Click <B>Stop</B> in this tab to stop the acquisition.
    <B>ORDER ANALYSIS VIs USED IN THIS EXAMPLE</B>:
    1. SVL Scale Voltage to EU.vi
    2. OAT Digital Tacho Process.vi
    3. OAT Get Even Angle Reference.vi
    4. OAT Convert to Even Angle Signal.vi
    5. OAT Compensate Even Angle Signal.vi
    My question is: How is the synchronization produced at the time of the compensation ? How is it possible to eliminate the errors in a synchronized fashion with respect to the surface of the shaft bearing in mind that I am acquired data at a low rotation speed in order to get the "even angle reference" and then I use it to remove the errors in the vibration signal acquired at normal operation. In this application both operations are made in different acquisitions, therefore the reference of the correction signal is lost. Is it simply compensated without synchronizing ?
    Our application is based on FPGA and we need to clarity those aspects before implementing the procedure.
    Solved!
    Go to Solution.

    Hi CracKatoA.
    Take a look at the link bellow:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=255126&requireLogin=False
    Regards,
    Filipe Silva

  • Windows XP 64 bit pro clean install with RAID

    Can anyone help out???
     I recently purchased a Lenovo Thinkpad W700 with the raid system (raid1) it had Vista Business pre installed but I wasn't impressed so I've cleared VB out and tried to install XP 64 pro  I have followed the guide I found on this site http://forum.notebookreview.com/showthread.php?t=188992
    which was very informative but didnt seem to include any details on a raid installation. If I change my BIOS Serial ata (sata) to compatibility I can install win xp and get it running but no raid!! if I try to install the Intel chipset driver it reports it cannot install!! If I set the Bios Serial ATA to RAID the setup goes so far through then I get the BSOD
    I seems to me I need some raid drivers but have no way of installing them during setup (I dont have the drivers anyway!!)
    Sooooo...........can anyone out there point me in the right direction for a clean xp pro install with raid??  theres a couple of beers in it!! 
    Lenovo thinkpad W700, Q9000 2.00GHz Quad Core 2x 160gb hdd raid1, 4gb ram, 1gb nvidia graphics FX3700m Fingerprint reader, Graphics tablet (digitiser?)
    Windows 7 Professional 64bit RAID 1

    I believe you need to install the Intel Matrix Storage Manager Driver for Windows XP, Vista (32bit) - ThinkPad. Installation instructions are on the same site. If you don't have a floppy you can streamline them onto an install disk.
    Other drivers can be found here.
    Andy  ______________________________________
    Please remember to come back and mark the post that you feel solved your question as the solution, it earns the member + points
    Did you find a post helpfull? You can thank the member by clicking on the star to the left awarding them Kudos Please add your type, model number and OS to your signature, it helps to help you. Forum Search Option T430 2347-G7U W8 x64, Yoga 10 HD+, Tablet 1838-2BG, T61p 6460-67G W7 x64, T43p 2668-G2G XP, T23 2647-9LG XP, plus a few more. FYI Unsolicited Personal Messages will be ignored.
      Deutsche Community     Comunidad en Español    English Community Русскоязычное Сообщество
    PepperonI blog 

  • How do I delete an app installed with an old iTunes account?

    How do I delete an app installed with an old iTunes account? After syncing my iPhone with iTunes, the app is not listed in the App section.

    To delete an app from your iphone, press and hold any icon until they all start wiggling. Apps that you can delete will have a circled x in the top left corner of the icon. Tap that circled x to delete. Tap home button to stop the wiggling.

  • CPU Overheating problem on Windows 8.1 Pro (installed with BootCamp)

    There is a really important overheating problem on windows 8.1 (installed with bootcamp) even i do nothing Cpu is 50-60-70 Celcius degrees. This is really annoying problem. Most of users necessarily need windows OS for using third part programs that doesnt exist on OS X platform. I think this problem is important and has to be fixed as soon as possible.
    My brand new Mac:
    MacBook Pro (Retina, 15-inch, Mid 2014)
    2,5 GHz Intel Core i7
    16 GB 1600 MHz DDR3

    I have the same problem on macbook pro retina 15 late 2013 - top configuration

  • I am trying to install my CS4 Suite onto new PC with Windows 8.  It installed Photoshop but nothing else.  It is asking me to "Install with 'setup.exe'"  Which i dont think is on there.  Is there a way around this?  Thanks in advance.

    I am trying to install my CS4 Suite onto new PC with Windows 8.  It installed Photoshop but nothing else.  It is asking me to "Install with 'setup.exe'"  Which i dont think is on there.  Is there a way around this?  Thanks in advance.

    Run the cleaner tool and reinstall with sufficient user privileges and security stuff turned off. Your install went wrong because you didn't consider this.
    Mylenium

  • Firefox plays video, but no sound. when I type about:plugins in location bar, it shows the firefox default plugin is not enabled. When I look at my plugins, it says it is enabled. I have uninstalled 3.6 and re-installed with the same result.

    firefox plays video, but no sound. when I type about:plugins in location bar, it shows the firefox default plugin is not enabled. When I look at my plugins, it says it is enabled. I have uninstalled 3.6 and re-installed with the same result. Why do I have no sound. Computer plays I-tunes and all other sounds, just no web browser sounds.

    Glad you seem to have sorted things out.
    The warning about the warranty is light hearted, I think at one stage it warned "here be dragons" but also intended to make us think as it warns that making changes may produce problems.

  • My macbook pro was first installed with leopard and bootcamp 3.2. Now i updated to lion. The problem is now that it is not possible to update to bootcamp 3.3. or 4.0. The report: The installation source is not correct. What can i do? Thanks for answer.

    my macbook pro was first installed with leopard and bootcamp 3.2 under windows 7. After update to lion it is no more possible to update bootcamp to 3.3. or 4.0. The report: The installation source ist not correct. What can i do?
    auf Deutsch:
    Auf meinem Macbook pro war Leopard und bootcamp 3.2  unter windows 7 installiert. Nach dem update auf lion kann bootcamp nicht mehr upgedatet werden. Weder auf 3.3. noch auf 4.0. Folgende Fehlermeldung kommt: Boot camp Dienste: Das installierte Produkt stimmt nicht mit der Installationsquelle überein. ... Was kann ich tun?

    It means what it says. The "computer person" formatted it wrongly/ unsuitably. it needs to be formatted again.
    Error "Case-sensitive drives not supported" or similar install error | Mac OS
    Mylenium

Maybe you are looking for

  • Adding a new column in a CREATE -- AS SELECT statement

    I am creating a table using a select from an existing table. I wish to also add one new column (with null values for all records). Is this possible? What would the syntax be for this column? Thanks, Kevin

  • Hyperion Shared Services Installation Problem (URGENT)

    Hi, I have installed the Hyperion Shared serives 9.3.1 with Oracle Application server and configured with the same but in services.msc i am able to see only HyperionS9OpenLDAp. i did the all post task and did manual configuration for Oracle Applicati

  • Installing Windows 7 on a B540

    Hello, I purchased a new B540 All-in-one from Best Buy and had the Geek Squad downgrade the operating system to Windows 7. The computer was purchased for my sister, who uses Windows 7 on her laptop. The first day I used it for 8 hours without a probl

  • Where are the FrameMaker 10 dictionaries located?

    My FrameMaker 10 installation seems to be doing British English rather than American English. In the spelling checker, I do import dictionary, but can't find any! The dictionary directory on the DVD seems to contain invalid dictionaries. So where are

  • DockDoctor 3.0 Widget Problem

    I installed the DockDoctor 3.0 Widget a while back just to test it out. I was able to change the color of my dock to red. I decided that it wasn't THAT great and deleted the entire widget and all corresponding files. I switched the location of my doc