Opened 6 years ago

Closed 6 years ago

#57490 closed defect (worksforme)

OpenSSL is not found but exists in port tree

Reported by: NebulaFox Owned by:
Priority: Normal Milestone:
Component: base Version: 2.5.4
Keywords: Cc:
Port:

Description

A while back I updated to high sierra and finally got round to migrating macports. Installed the correct macports for high sierra, I decided uninstall all ports but not reinstall them. Just reinstall the ones I needed currently. I am currently trying to install python37 but it reports

#$ sudo port install python37
--->  Computing dependencies for python37
Error: Dependency 'openssl' not found.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port python37 failed
#$ 

I then tried to install openssl

#$ sudo port install openssl
Error: Port openssl not found
#$

I tried sudo port sync and install python37 again, get the same error. I dug into /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/ and found the openssl folder and Portfile, so (with my limited knowledge of macports) it is there.

To check macports will install something else I tried zlib and xz and they both installed with no problems.

Change History (5)

comment:1 Changed 6 years ago by raimue (Rainer Müller)

Does sudo port -v sync report any warnings or errors? The importance is that not only the Portfile has to exist, each port also has to be listed in the PortIndex file generated during sync.

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

It's unrelated to this problem, but I see you're using an old URL for our ports tree. Please edit /opt/local/etc/macports/sources.conf and change the last line to:

rsync://rsync.macports.org/macports/release/tarballs/ports.tar [default]

You can then delete the directory /opt/local/var/macports/sources/rsync.macports.org/release.

comment:3 Changed 6 years ago by NebulaFox

sudo port -v sync did not come back with any errors.

Updating /opt/local/etc/macports/sources.conf change the last line:

rsync://rsync.macports.org/macports/release/tarballs/ports.tar [default]

and then sudo port -v sync and then sudo port install openssl gave me this error

#$ sudo port install openssl
Error: Unable to determine location of a macOS SDK.
Error: Unable to open port: can't read "configure.sdkroot": Unable to determine location of a macOS SDK.

Checking trac I found https://trac.macports.org/ticket/56619 which gave me the fix:

Run into this problem with macOS 10.13.6 + Xcode 10.0. I was able to "fix" it by creating symlink in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/

sudo ln -s MacOSX.sdk MacOSX10.13.sdk

This has now fixed my issue. openssl is now found and python37 is installed. Thanks everyone for the help.

comment:4 Changed 6 years ago by kencu (Ken)

Looks like you had two different issues going on here, but glad you got it fixed.

We really need to move on that Xcode10 / macOS 10.13 thing. It's a recognized problem that is broken for many for some time now.

comment:5 Changed 6 years ago by kencu (Ken)

Resolution: worksforme
Status: newclosed

This ticket is resolved, and the macOS 10.13 issue is tracked elsewhere. Closing as -- worksforme, I suppose.

Note: See TracTickets for help on using tickets.