Menu

Problem with Boost via Mac Ports

2015-12-11
2015-12-11
  • Bradley S. Meyer

    Moved from here:

    Dear sir,
    Every time I encontered the problem below, can you help me find ways to solve it:
    .............
    when I run*
    MacBook:analysis mumu$ make all_analysis
    In file included from ../../nnt/auxiliary.cpp:29:0:
    ../../nnt/auxiliary.h:37:33: fatal error: boost/tuple/tuple.hpp: No such file or directory

    include <boost tuple="" tuple.hpp="">

    ^
    compilation terminated.
    make: [../../obj/auxiliary.o] Error 1
    gedeMacBook:analysis mumu$ make all_analysis
    g++ -Werror -Wall -Wpointer-arith -Wcast-qual -Wwrite-strings -fshort-enums -fno-common -g -ansi -Wconversion -O0 -Wno-deprecated xml2-config --cflags gsl-config --cflags -I../../vendor/libnucnet/0.23/src -I../../vendor/wn_matrix/0.15/src -I../../vendor/libstatmech/0.8/src -I../../vendor/libnuceq/0.5/src -I../.. -c -o ../../obj/auxiliary.o ../../nnt/auxiliary.cpp
    In file included from ../../nnt/auxiliary.cpp:29:0:
    ../../nnt/auxiliary.h:37:33: fatal error: boost/tuple/tuple.hpp: No such file or directory

    include <boost tuple="" tuple.hpp="">

    ^
    compilation terminated.
    make: [../../obj/auxiliary.o] Error 1
    Then I try to install boost and also try to install source of boost on mac
    sudo port install boost
    Password:
    ---> Computing dependencies for boost
    ---> Cleaning boost
    ---> Scanning binaries for linking errors
    ---> Found 1 broken file(s), matching files to ports
    ---> Found 1 broken port(s), determining rebuild order
    ---> Rebuilding in order
    guile18 @1.8.8
    ---> Computing dependencies for guile18
    ---> Cleaning guile18
    ---> Scanning binaries for linking errors
    ---> Found 1 broken file(s), matching files to ports
    ---> Found 1 broken port(s), determining rebuild order
    ---> Rebuilding in order
    guile18 @1.8.8
    ---> Computing dependencies for guile18
    ---> Fetching distfiles for guile18
    ---> Verifying checksums for guile18
    ---> Extracting guile18
    ---> Applying patches to guile18
    ---> Configuring guile18
    ---> Building guile18
    ---> Staging guile18 into destroot
    Error: org.macports.destroot for port guile18 returned: command execution failed
    Please see the log file for port guile18 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_guile18/guile18/main.log
    Error: Unable to upgrade port: 1
    Error rebuilding guile18
    while executing
    "error "Error rebuilding $portname""
    (procedure "revupgrade_scanandrebuild" line 395)
    invoked from within
    "revupgrade_scanandrebuild broken_port_counts $opts"
    (procedure "macports::revupgrade" line 5)
    invoked from within
    "macports::revupgrade $opts"
    (procedure "action_revupgrade" line 2)
    invoked from within
    "action_revupgrade $action $portlist $opts"
    (procedure "action_target" line 96)
    invoked from within
    "$action_proc $action $portlist [array get global_options]"
    (procedure "process_cmd" line 103)
    invoked from within
    "process_cmd $remaining_args"
    invoked from within
    "if { [llength $remaining_args] > 0 } {

    If there are remaining arguments, process those as a command

    set exit_status [process_cmd $remaining..."
    (file "/opt/local/bin/port" line 5268)

     
    • Bradley S. Meyer

      It seems that your installation of some Mac Ports is corrupted. You might try uninstalling boost (and its dependencies):

      sudo port uninstall boost

      and then reinstalling

      sudo port install boost

      If this doesn't work, you might try the more drastic step of reinstalling all your ports. To do this, follow steps 3a-3f at the Mac Ports page on migration. This will, of course, take a while, but it should work. Let me know if it doesn't. Best wishes.

       

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.