Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#36934 closed defect (invalid)

'md5sha1sum' fails to install

Reported by: sonicmdc@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: landonf (Landon Fuller)
Port: zlib

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

I am trying to install 'md5sha1sum' but I am encountering two main errors as follows:

Error: Problem while installing zlib
Error: Unable to execute port: upgrade openssl failed

I am running Mountain Lion
I have XCode v. 4.5.2 running
XQuartz 2.7.4 is installed Using MacPorts v. 2.1.2

I've tried everything I can find on the internet, from using 'sudo port uninstall zlib', 'sudo port uninstall md5sha1sum', and the sudo port clean commands. Nothing is helping.

I'm attaching the latest log file. Please advise!?

Attachments (4)

main.log (4.3 KB) - added by sonicmdc@… 11 years ago.
Error log: zlib failed to install
main.2.log (9.7 KB) - added by sonicmdc@… 11 years ago.
log for sudo port install md5sha1sum
main.3.log (4.3 KB) - added by sonicmdc@… 11 years ago.
main.4.log (9.7 KB) - added by sonicmdc@… 11 years ago.

Download all attachments as: .zip

Change History (10)

Changed 11 years ago by sonicmdc@…

Attachment: main.log added

Error log: zlib failed to install

comment:1 Changed 11 years ago by neverpanic (Clemens Lang)

Cc: landonf@… added
Keywords: md5sha1sum zlib openssl removed
Owner: changed from macports-tickets@… to ryandesign@…
Port: zlib added; md5sha1sum removed

Please remember to Cc the maintainers of the failing port.

Your main.log is not from a clean attempt. Please run port clean zlib, re-try and attach the new log.

You say you're on ML, but your log shows you're building for i386 and ppc. Is there any specific reason why you're doing this? Did you modify universal_archs in macports.conf to read i386 ppc?

Changed 11 years ago by sonicmdc@…

Attachment: main.2.log added

log for sudo port install md5sha1sum

comment:2 Changed 11 years ago by sonicmdc@…

Thank you for your reply.

So I ran sudo port clean zlib and sudo port clean md5sha1sum. Then I tried to install using sudo port install md5sha1sum. I've attached the resulting log.

Issue #2: I don't know why my log shows that I'm building for i386 and ppc. This sounds like it could be a problem. How do I fix this?

Thank you again for your help.

comment:3 Changed 11 years ago by neverpanic (Clemens Lang)

The fresh log clearly shows it's MacPorts that tells the zlib build process to build for i386 and ppc: zlib-1.2.7_0+universal.darwin_12.i386-ppc.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified, CFLAGS='-pipe -O2 -arch i386 -arch ppc'.

Have a look at your $prefix/etc/macports/macports.conf. It should have a line reading "universal_archs i386 ppc". You should change it to the default for ML, which is "universal_archs x86_64 i386".

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

Description: modified (diff)
Resolution: invalid
Status: newclosed

If you did not set universal_archs to i386 ppc manually in macports.conf, then I suspect you upgraded this machine to Mountain Lion from Leopard or earlier, or migrated from such a machine (because universal_archs used to be i386 ppc in Tiger and Leopard). MacPorts does not automatically update macports.conf for you when you upgrade the OS or migrate to a new computer; you must do so manually. See wiki:Migration#Updatemacports.conf

comment:5 Changed 11 years ago by sonicmdc@…

Thank you again for this information.

I looked at the wiki, it said the following: "Take a moment to compare each line of your macports.conf with the corresponding line in macports.conf.default in the same directory. Unless you know a reason why a line your settings file should be different from the defaults, adopt the line from the defaults file."

How do I edit this macports.conf file? Is there a specific editor I use? Do I first have to unarchive the file?

I reinstalled macports, per the wiki. However, I have not uninstalled and then reinstalled my ports. I tried again to install md5sha1sum with the same result, and the log still shows i386 (attached for reference...

Changed 11 years ago by sonicmdc@…

Attachment: main.3.log added

Changed 11 years ago by sonicmdc@…

Attachment: main.4.log added

comment:6 in reply to:  5 Changed 11 years ago by neverpanic (Clemens Lang)

Replying to sonicmdc@…:

How do I edit this macports.conf file? Is there a specific editor I use? Do I first have to unarchive the file?

It's a plain text file, use whatever text editor you like. Text Edit, TextMate, vim, nano or any other plain text editor should be fine.

I reinstalled macports, per the wiki. However, I have not uninstalled and then reinstalled my ports. I tried again to install md5sha1sum with the same result, and the log still shows i386 (attached for reference...

And it will keep doing so until you change the universal_archs line in your macports.conf.

Note: See TracTickets for help on using tickets.