[MacPorts] #49449: pymol: error: no type named 'shared_ptr' in namespace 'std' (was: Error installing Pymol)

MacPorts noreply at macports.org
Sun Oct 25 19:55:16 PDT 2015


#49449: pymol: error: no type named 'shared_ptr' in namespace 'std'
-----------------------------+-----------------------------------
  Reporter:  kathryn.cole@…  |      Owner:  howarth.at.macports@…
      Type:  defect          |     Status:  new
  Priority:  Normal          |  Milestone:
 Component:  ports           |    Version:  2.3.4
Resolution:                  |   Keywords:
      Port:  pymol           |
-----------------------------+-----------------------------------
Changes (by ryandesign@…):

 * owner:  macports-tickets@… => howarth.at.macports@…
 * port:   => pymol


Old description:

> I am unable to install Pymol. I upgraded my MacPorts, did sudo install,
> and sudo clean, but I am getting the following error:
>
> Error: org.macports.destroot for port pymol returned: command execution
> failed
> Please see the log file for port pymol for details:
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_pymol/pymol/main.log
>
> I searched the previous tickets, and see that there have been similar
> reports, but I am unsure of the best/ most current solution. Thank you
> for your help!

New description:

 I am unable to install Pymol. I upgraded my MacPorts, did sudo install,
 and sudo clean, but I am getting the following error:

 {{{
 Error: org.macports.destroot for port pymol returned: command execution
 failed
 Please see the log file for port pymol for details:
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_pymol/pymol/main.log
 }}}

 I searched the previous tickets, and see that there have been similar
 reports, but I am unsure of the best/ most current solution. Thank you for
 your help!

--

Comment:

 The error in the log is:

 {{{
 error: no type named 'shared_ptr' in namespace 'std'
 }}}

 I think this error means the port requires C++11.

 The log also shows this is on OS X 10.8, which uses libstdc++ by default
 which does not support C++11.

 The current MacPorts solution to this type of problem is to include the
 cxx11 portgroup by writing:

 {{{
 PortGroup cxx11 1.0
 }}}

 after the PortSystem line in the portfile. This will cause the user to be
 directed to a web page that informs them how they can resolve the problem.

-- 
Ticket URL: <https://trac.macports.org/ticket/49449#comment:1>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list