Opened 10 years ago

Closed 10 years ago

#44847 closed defect (invalid)

pstoedit @3.61_6: error: no such file or directory: '/usr/local/lib/libstdc++.dylib'

Reported by: stallenlu@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.1
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: pstoedit

Description (last modified by ryandesign (Ryan Carsten Schmidt))

udo port upgrade outdated
Password:
--->  Computing dependencies for pstoedit
--->  Building pstoedit
Error: org.macports.build for port pstoedit returned: command execution failed
Please see the log file for port pstoedit for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_pstoedit/pstoedit/main.log
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets

Attachments (2)

main.log (13.9 KB) - added by stallenlu@… 10 years ago.
main.clean.log (48.3 KB) - added by stallenlu@… 10 years ago.

Download all attachments as: .zip

Change History (10)

Changed 10 years ago by stallenlu@…

Attachment: main.log added

comment:1 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Port: pstoedit added
Summary: pstoedit-3.61_6+Building pstoedit+rror: org.macports.build for port pstoedit returned: command execution failedpstoedit @3.61_6: error: no such file or directory: '/usr/local/lib/libstdc++.dylib'

This was not a clean build attempt. Please clean and try again.

The log shows this error:

:info:build clang: error: no such file or directory: '/usr/local/lib/libstdc++.dylib'

If the new clean log mentions the same error, then you have a problem, which is that at one time you had a library /usr/local/lib/libstdc++.dylib but perhaps no longer do. Using MacPorts while having software installed in /usr/local is not supported because problems like this can arise.

Changed 10 years ago by stallenlu@…

Attachment: main.clean.log added

comment:2 Changed 10 years ago by stallenlu@…

Thank you. I clean and try again, but the same problem reoccurs.

Firstly, I run:

sudo port clean pstoedit

then, run

sudo port upgrade outdated

After that, it appears:

Computing dependencies for pstoedit
--->  Fetching archive for pstoedit
Warning: Your DNS servers incorrectly claim to know the address of nonexistent hosts. This may cause checksum mismatches for some ports. See this page for more information: <https://trac.macports.org/wiki/MisbehavingServers>
--->  Attempting to fetch pstoedit-3.61_6.darwin_13.x86_64.tbz2 from http://nue.de.packages.macports.org/macports/packages/pstoedit
--->  Attempting to fetch pstoedit-3.61_6.darwin_13.x86_64.tbz2 from http://jog.id.packages.macports.org/macports/packages/pstoedit
--->  Attempting to fetch pstoedit-3.61_6.darwin_13.x86_64.tbz2 from http://packages.macports.org/pstoedit
--->  Fetching distfiles for pstoedit
--->  Verifying checksums for pstoedit
--->  Extracting pstoedit
--->  Applying patches to pstoedit
--->  Configuring pstoedit
--->  Building pstoedit
Error: org.macports.build for port pstoedit returned: command execution failed
Please see the log file for port pstoedit for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_pstoedit/pstoedit/main.log
Error: Unable to upgrade port: 1
Last edited 10 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:3 Changed 10 years ago by stallenlu@…

In /usr/local/lib there is "libstdc++.6.dylib"

comment:4 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

You must remove /usr/local/lib/libstdc++.6.dylib and anything else in /usr/local. Its presence is confusing MacPorts. After doing that, it's possible you will need to rebuild some of your ports, which may have inadvertently linked with libraries you had in /usr/local. Running "sudo port rev-upgrade" should detect and rebuild any affected ports.

comment:5 Changed 10 years ago by stallenlu@…

Are you sure that I should remove anything in /usr/local not in /usr/local/lib?

when i cd /usr/local and then "ls", it appears

otal 40
-rw-r--r--   1 stephen admin  3158  6 25 21:13 CODEOFCONDUCT.md
-rw-r--r--   1 stephen admin   846  8 11 14:01 CONTRIBUTING.md
drwxr-xr-x   3 stephen admin   102  8 15 16:51 Cellar
-rw-r--r--   1 stephen admin  1253  6 25 21:13 LICENSE.txt
drwxr-xr-x  10 stephen admin   340  8 15 16:51 Library
-rw-r--r--   1 stephen admin  1870  8 11 14:01 README.md
-rw-r--r--   1 stephen admin 23719  6 25 21:13 SUPPORTERS.md
drwxrwxr-x  70 root    admin  2380  8 15 16:51 bin
drwxrwxr-x   7     503 admin   238  8 15 16:51 etc
drwxr-xr-x   7 root    admin   238  8 15 16:51 gfortran
drwxrwxr-x  47 root    admin  1598  8 15 16:51 include
drwxrwxr-x 120 root    admin  4080  8 15 16:51 lib
drwxr-xr-x   3 root    wheel   102  8 15 16:51 libexec
drwxr-xr-x   5 root    wheel   170  8 15 16:51 man
drwxrwxr-x  10 root    admin   340  8 15 16:51 share

I'm worry about to remove everything in /usr/local.

comment:6 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

The presence of "Cellar" suggests you have Homebrew, a competing package manager, installed. We do not support the use of MacPorts simultaneously with another package manager because it can cause problems. Please decide which package management system you want to use, and uninstall the other(s).

comment:7 Changed 10 years ago by stallenlu@…

Thank you. I've remove brew, and everything is OK now. Thank you very much.

comment:8 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: newclosed

Great, I'm glad that worked.

Note: See TracTickets for help on using tickets.