Discussion:
Problem installing macports
Sepideh Razavi
2015-10-12 12:31:03 UTC
Permalink
Hi,

My attempts to install Macports on a 10.10.5 Yosemite have been
unsuccessful so far. I have tried installation both through the graphic
interface and the source file. Using the pkg file, the installation seems
to fail at the validation step. When running the source, I can configure
and make the file but running "sudo make install" gives me the following
message towards the end:

===> making install in tests

make[1]: Nothing to be done for `install'.

[ ! -f "/opt/local/etc/macports/mp_version" ] || rm -vf
"/opt/local/etc/macports/mp_version"

/usr/bin/install -c -d -o root -g admin -m 0755 "/opt/local/share/macports/"

/usr/bin/install -c -o root -g admin -m 444 setupenv.bash
"/opt/local/share/macports/"

/usr/bin/install -c -o root -g admin -m 444 ./macports-pubkey.pem
"/opt/local/share/macports/"

/opt/local/libexec/macports/bin/tclsh8.5
./src/upgrade_sources_conf_default.tcl "/opt/local"

couldn't create error file for command: no such file or directory

while executing

"open "|$mktemp -t macports_sources_upgrade.XXXXXXXXXX" r"

invoked from within

"set mktempChannel [open "|$mktemp -t macports_sources_upgrade.XXXXXXXXXX"
r]"

(file "./src/upgrade_sources_conf_default.tcl" line 33)
make: *** [install] Error 1

Xcode and command line tools are up to date. Would you please help me
resolve this issue.

Thanks!
--
Sepideh Razavi
Postdoctoral Research Fellow
North Campus Research Complex
University of Michigan
Ann Arbor, MI 48109
email: *srazavi**@umich.edu <http://che.ccny.cuny.edu> *
Rainer Müller
2015-10-12 13:35:07 UTC
Permalink
Post by Sepideh Razavi
/opt/local/libexec/macports/bin/tclsh8.5
./src/upgrade_sources_conf_default.tcl "/opt/local"
couldn't create error file for command: no such file or directory
while executing
"open "|$mktemp -t macports_sources_upgrade.XXXXXXXXXX" r"
invoked from within
"set mktempChannel [open "|$mktemp -t
macports_sources_upgrade.XXXXXXXXXX" r]"
(file "./src/upgrade_sources_conf_default.tcl" line 33)
make: *** [install] Error 1
It looks the installation is unable to create temporary files.
Maybe $TMPDIR points to a non-existent path?

Reboot your machine. That should reset the temporary directory.

Rainer
Sepideh Razavi
2015-10-12 14:17:09 UTC
Permalink
Hi Rainer,

Thanks for your response. When you brought up the tmp directory, I realized
that there must be an issue with the tmp on my Mac because I also had
experienced problems with attaching documents to my email. I did reboot the
computer but that didn't help so I went ahead and made the tmp directory in
root. I could get the macports "sudo make install" to work and then I ran
"sudo port -d self update" which was executed successfully. However, when I
tried to grab python 2.7 using macports, I ran into the following issue:

hawkeye:/ srazavi$ sudo port install cmake boost +python27 python_select
openmpi-default

---> Computing dependencies for cmake

---> Dependencies to be installed: bzip2 curl curl-ca-bundle openssl zlib
expat libarchive libiconv libxml2 xz gettext ncurses lzo2

---> Fetching archive for bzip2

---> Attempting to fetch bzip2-1.0.6_0.darwin_14.x86_64.tbz2 from
http://packages.macports.org/bzip2

---> Attempting to fetch bzip2-1.0.6_0.darwin_14.x86_64.tbz2.rmd160 from
http://packages.macports.org/bzip2

Warning: Failed to verify signature for archive!

Error: org.macports.archivefetch for port bzip2 returned: archivefetch
failed for bzip2 @1.0.6_0

Error: Failed to install bzip2

Please see the log file for port bzip2 for details:


/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_bzip2/bzip2/main.log

Error: The following dependencies were not installed: bzip2 curl
curl-ca-bundle openssl zlib expat libarchive libiconv libxml2 xz gettext
ncurses lzo2

To report a bug, follow the instructions in the guide:

http://guide.macports.org/#project.tickets

Error: Processing of port cmake failed


Any suggestions?

Thanks again!
Sepideh

--
Sepideh Razavi
Postdoctoral Research Fellow
North Campus Research Complex
University of Michigan
Ann Arbor, MI 48109
Post by Rainer Müller
Post by Sepideh Razavi
/opt/local/libexec/macports/bin/tclsh8.5
./src/upgrade_sources_conf_default.tcl "/opt/local"
couldn't create error file for command: no such file or directory
while executing
"open "|$mktemp -t macports_sources_upgrade.XXXXXXXXXX" r"
invoked from within
"set mktempChannel [open "|$mktemp -t
macports_sources_upgrade.XXXXXXXXXX" r]"
(file "./src/upgrade_sources_conf_default.tcl" line 33)
make: *** [install] Error 1
It looks the installation is unable to create temporary files.
Maybe $TMPDIR points to a non-existent path?
Reboot your machine. That should reset the temporary directory.
Rainer
Ryan Schmidt
2015-10-12 15:33:59 UTC
Permalink
hawkeye:/ srazavi$ sudo port install cmake boost +python27 python_select openmpi-default
---> Computing dependencies for cmake
---> Dependencies to be installed: bzip2 curl curl-ca-bundle openssl zlib expat libarchive libiconv libxml2 xz gettext ncurses lzo2
---> Fetching archive for bzip2
---> Attempting to fetch bzip2-1.0.6_0.darwin_14.x86_64.tbz2 from http://packages.macports.org/bzip2
---> Attempting to fetch bzip2-1.0.6_0.darwin_14.x86_64.tbz2.rmd160 from http://packages.macports.org/bzip2
Warning: Failed to verify signature for archive!
Those files on the server haven't changed since November 2014, so I doubt they're the problem. Maybe clean the port and try again?
Sepideh Razavi
2015-10-12 17:38:39 UTC
Permalink
So I tried cleaning all the ports using "port clean --all all" and it
didn't help. Also uninstalled macports and built it again from the source
but still get the same error no matter what port I am trying to install.
For instance when grabbing vim I get:

hawkeye:MacPorts-2.3.3 srazavi$ sudo port install vim

---> Computing dependencies for vim

---> Dependencies to be installed: gettext expat libiconv ncurses

---> Fetching archive for expat

---> Attempting to fetch expat-2.1.0_0.darwin_14.x86_64.tbz2 from
http://packages.macports.org/expat

---> Attempting to fetch expat-2.1.0_0.darwin_14.x86_64.tbz2.rmd160 from
http://packages.macports.org/expat

Warning: Failed to verify signature for archive!

Error: org.macports.archivefetch for port expat returned: archivefetch
failed for expat @2.1.0_0

Error: Failed to install expat

Please see the log file for port expat for details:


/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_expat/expat/main.log

Error: The following dependencies were not installed: gettext expat
libiconv ncurses

To report a bug, follow the instructions in the guide:

http://guide.macports.org/#project.tickets

Error: Processing of port vim failed


One more thing to add is that I am still unable to install macports from
the package file but was able to install it through the source and update
it to version 2.3.4. I am not sure what is defective in my installed
macport that I can not grab any port using it. Any ideas?

Thanks!
Sepideh

--
Sepideh Razavi
Postdoctoral Research Fellow
North Campus Research Complex
University of Michigan
Ann Arbor, MI 48109
Post by Sepideh Razavi
Post by Sepideh Razavi
hawkeye:/ srazavi$ sudo port install cmake boost +python27 python_select
openmpi-default
Post by Sepideh Razavi
---> Computing dependencies for cmake
---> Dependencies to be installed: bzip2 curl curl-ca-bundle openssl
zlib expat libarchive libiconv libxml2 xz gettext ncurses lzo2
Post by Sepideh Razavi
---> Fetching archive for bzip2
---> Attempting to fetch bzip2-1.0.6_0.darwin_14.x86_64.tbz2 from
http://packages.macports.org/bzip2
Post by Sepideh Razavi
---> Attempting to fetch bzip2-1.0.6_0.darwin_14.x86_64.tbz2.rmd160
from http://packages.macports.org/bzip2
Post by Sepideh Razavi
Warning: Failed to verify signature for archive!
Those files on the server haven't changed since November 2014, so I doubt
they're the problem. Maybe clean the port and try again?
Ryan Schmidt
2015-10-12 22:39:47 UTC
Permalink
Post by Sepideh Razavi
hawkeye:MacPorts-2.3.3 srazavi$ sudo port install vim
---> Computing dependencies for vim
---> Dependencies to be installed: gettext expat libiconv ncurses
---> Fetching archive for expat
---> Attempting to fetch expat-2.1.0_0.darwin_14.x86_64.tbz2 from http://packages.macports.org/expat
---> Attempting to fetch expat-2.1.0_0.darwin_14.x86_64.tbz2.rmd160 from http://packages.macports.org/expat
Warning: Failed to verify signature for archive!
Can you use the debug flag (-d) to show us more about why the signature verification failed?

sudo port -d install vim
Bill Christensen
2015-10-12 23:24:55 UTC
Permalink
Post by Ryan Schmidt
Post by Sepideh Razavi
hawkeye:MacPorts-2.3.3 srazavi$ sudo port install vim
---> Computing dependencies for vim
---> Dependencies to be installed: gettext expat libiconv ncurses
---> Fetching archive for expat
---> Attempting to fetch expat-2.1.0_0.darwin_14.x86_64.tbz2 from http://packages.macports.org/expat
---> Attempting to fetch expat-2.1.0_0.darwin_14.x86_64.tbz2.rmd160 from http://packages.macports.org/expat
Warning: Failed to verify signature for archive!
Can you use the debug flag (-d) to show us more about why the signature verification failed?
sudo port -d install vim
sudo port -d -v selfupdate
DEBUG: Copying /Users/billc/Library/Preferences/com.apple.dt.Xcode.plist
to /opt/local/var/macports/home/Library/Preferences
DEBUG: MacPorts sources location:
/opt/local/var/macports/sources/rsync.macports.org/release/tarballs
---> Updating MacPorts base sources using rsync
receiving file list ... done

sent 36 bytes received 69 bytes 4.29 bytes/sec
total size is 27013120 speedup is 257267.81
receiving file list ... done

sent 36 bytes received 76 bytes 4.57 bytes/sec
total size is 512 speedup is 4.57
DEBUG: failed verification with key
/opt/local/share/macports/macports-pubkey.pem
DEBUG: openssl output: Verification Failure
child process exited abnormally
DEBUG: Failed to verify signature for MacPorts source!
while executing
"macports::selfupdate [array get global_options] base_updated"
Error: Failed to verify signature for MacPorts source!
To report a bug, follow the instructions in the guide:
http://guide.macports.org/#project.tickets
Error: /opt/local/bin/port: port selfupdate failed: Failed to verify
signature for MacPorts source!
Ryan Schmidt
2015-10-12 23:41:48 UTC
Permalink
Post by Ryan Schmidt
sudo port -d -v selfupdate
DEBUG: Copying /Users/billc/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences
DEBUG: MacPorts sources location: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
---> Updating MacPorts base sources using rsync
receiving file list ... done
sent 36 bytes received 69 bytes 4.29 bytes/sec
total size is 27013120 speedup is 257267.81
receiving file list ... done
sent 36 bytes received 76 bytes 4.57 bytes/sec
total size is 512 speedup is 4.57
DEBUG: failed verification with key /opt/local/share/macports/macports-pubkey.pem
DEBUG: openssl output: Verification Failure
child process exited abnormally
DEBUG: Failed to verify signature for MacPorts source!
while executing
"macports::selfupdate [array get global_options] base_updated"
Error: Failed to verify signature for MacPorts source!
http://guide.macports.org/#project.tickets
Error: /opt/local/bin/port: port selfupdate failed: Failed to verify signature for MacPorts source!
_______________________________________________
That's a problem verifying the signature of MacPorts base source when doing a selfupdate. That's reported here:

https://trac.macports.org/ticket/49233

It likely has to do with the rsync server's current problems.

That's different to Sepideh Razavi's problem which is a failure to verify a port archive's signature. Port archives don't have anything to do with rsync so this will have a different reason, and we need to see the debug output from his system to determine what it is.
Bill Christensen
2015-10-13 02:42:41 UTC
Permalink
Post by Ryan Schmidt
Post by Ryan Schmidt
sudo port -d -v selfupdate
DEBUG: Copying /Users/billc/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences
DEBUG: MacPorts sources location: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
---> Updating MacPorts base sources using rsync
receiving file list ... done
sent 36 bytes received 69 bytes 4.29 bytes/sec
total size is 27013120 speedup is 257267.81
receiving file list ... done
sent 36 bytes received 76 bytes 4.57 bytes/sec
total size is 512 speedup is 4.57
DEBUG: failed verification with key /opt/local/share/macports/macports-pubkey.pem
DEBUG: openssl output: Verification Failure
child process exited abnormally
DEBUG: Failed to verify signature for MacPorts source!
while executing
"macports::selfupdate [array get global_options] base_updated"
Error: Failed to verify signature for MacPorts source!
http://guide.macports.org/#project.tickets
Error: /opt/local/bin/port: port selfupdate failed: Failed to verify signature for MacPorts source!
_______________________________________________
https://trac.macports.org/ticket/49233
It likely has to do with the rsync server's current problems.
That's different to Sepideh Razavi's problem which is a failure to verify a port archive's signature. Port archives don't have anything to do with rsync so this will have a different reason, and we need to see the debug output from his system to determine what it is.
Ok.

Tried the suggested "sudo port sync" from that ticket, it failed on
rsync also:

$ sudo port sync
Password:
---> Updating the ports tree
Error: Synchronization of the local ports tree failed doing rsync
port sync failed: Synchronization of 1 source(s) failed
Mihai Moldovan
2015-10-13 04:22:16 UTC
Permalink
Post by Bill Christensen
$ sudo port sync
---> Updating the ports tree
Error: Synchronization of the local ports tree failed doing rsync
port sync failed: Synchronization of 1 source(s) failed
Can you re-run with -v? "sudo port -v sync"

Also, this might be a network problem. Do you get a nice list of modules with
"rsync rsync.macports.org::"?



Mihai
Ryan Schmidt
2015-10-13 05:43:10 UTC
Permalink
Post by Mihai Moldovan
Post by Bill Christensen
$ sudo port sync
---> Updating the ports tree
Error: Synchronization of the local ports tree failed doing rsync
port sync failed: Synchronization of 1 source(s) failed
Can you re-run with -v? "sudo port -v sync"
Also, this might be a network problem. Do you get a nice list of modules with
"rsync rsync.macports.org::"?
Troubleshooting this problem further is pointless. We already know the rsync server is broken and needs to be repaired by the administrator. If you'd like to follow the progress of this issue you can Cc yourself on this ticket:

https://trac.macports.org/ticket/49224
Manfred Antar
2015-10-12 23:56:55 UTC
Permalink
I’m seeing the same thing here.

Manfred
Post by Ryan Schmidt
Post by Sepideh Razavi
hawkeye:MacPorts-2.3.3 srazavi$ sudo port install vim
---> Computing dependencies for vim
---> Dependencies to be installed: gettext expat libiconv ncurses
---> Fetching archive for expat
---> Attempting to fetch expat-2.1.0_0.darwin_14.x86_64.tbz2 from http://packages.macports.org/expat
---> Attempting to fetch expat-2.1.0_0.darwin_14.x86_64.tbz2.rmd160 from http://packages.macports.org/expat
Warning: Failed to verify signature for archive!
Can you use the debug flag (-d) to show us more about why the signature verification failed?
sudo port -d install vim
sudo port -d -v selfupdate
DEBUG: Copying /Users/billc/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences
DEBUG: MacPorts sources location: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
---> Updating MacPorts base sources using rsync
receiving file list ... done
sent 36 bytes received 69 bytes 4.29 bytes/sec
total size is 27013120 speedup is 257267.81
receiving file list ... done
sent 36 bytes received 76 bytes 4.57 bytes/sec
total size is 512 speedup is 4.57
DEBUG: failed verification with key /opt/local/share/macports/macports-pubkey.pem
DEBUG: openssl output: Verification Failure
child process exited abnormally
DEBUG: Failed to verify signature for MacPorts source!
while executing
"macports::selfupdate [array get global_options] base_updated"
Error: Failed to verify signature for MacPorts source!
http://guide.macports.org/#project.tickets
Error: /opt/local/bin/port: port selfupdate failed: Failed to verify signature for MacPorts source!
_______________________________________________
macports-users mailing list
https://lists.macosforge.org/mailman/listinfo/macports-users
Sepideh Razavi
2015-10-13 11:55:04 UTC
Permalink
So I cleaned all the ports and uninstalled macports, then built again from
the source. Again run into signature verification failure step but this
time even at the self update step (where I had no issues before):

hawkeye:1-Analysis srazavi$ sudo port -v -d selfupdate

DEBUG: Copying /Users/srazavi/Library/Preferences/com.apple.dt.Xcode.plist
to /opt/local/var/macports/home/Library/Preferences

DEBUG: MacPorts sources location: /opt/local/var/macports/sources/
rsync.macports.org/release/tarballs

---> Updating MacPorts base sources using rsync

receiving file list ... done


sent 36 bytes received 69 bytes 70.00 bytes/sec

total size is 27013120 speedup is 257267.81

receiving file list ... done


sent 36 bytes received 76 bytes 224.00 bytes/sec

total size is 512 speedup is 4.57

DEBUG: failed verification with key
/opt/local/share/macports/macports-pubkey.pem

DEBUG: openssl output: Verification Failure

child process exited abnormally

DEBUG: Failed to verify signature for MacPorts source!

while executing

"macports::selfupdate [array get global_options] base_updated"

Error: Failed to verify signature for MacPorts source!

To report a bug, follow the instructions in the guide:

http://guide.macports.org/#project.tickets
Error: /opt/local/bin/port: port selfupdate failed: Failed to verify
signature for MacPorts source!

Sepideh

--
Sepideh Razavi
Postdoctoral Research Fellow
North Campus Research Complex
University of Michigan
Ann Arbor, MI 48109
Post by Sepideh Razavi
Post by Sepideh Razavi
So I tried cleaning all the ports using "port clean --all all" and it
didn't help. Also uninstalled macports and built it again from the source
but still get the same error no matter what port I am trying to install.
Post by Sepideh Razavi
hawkeye:MacPorts-2.3.3 srazavi$ sudo port install vim
---> Computing dependencies for vim
---> Dependencies to be installed: gettext expat libiconv ncurses
---> Fetching archive for expat
---> Attempting to fetch expat-2.1.0_0.darwin_14.x86_64.tbz2 from
http://packages.macports.org/expat
Post by Sepideh Razavi
---> Attempting to fetch expat-2.1.0_0.darwin_14.x86_64.tbz2.rmd160
from http://packages.macports.org/expat
Post by Sepideh Razavi
Warning: Failed to verify signature for archive!
Can you use the debug flag (-d) to show us more about why the signature
verification failed?
sudo port -d install vim
Brandon Allbery
2015-10-13 14:22:07 UTC
Permalink
Post by Sepideh Razavi
So I cleaned all the ports and uninstalled macports, then built again from
the source. Again run into signature verification failure step but this
I believe that was cited as a workaround, since reinstalling MacPorts does
the base update step that is failing. For now, do "sudo port sync" to
update just the ports.
--
brandon s allbery kf8nh sine nomine associates
***@gmail.com ***@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
Ryan Schmidt
2015-10-13 21:23:28 UTC
Permalink
I believe that was cited as a workaround, since reinstalling MacPorts does the base update step that is failing. For now, do "sudo port sync" to update just the ports.
"sudo port sync" will not update your ports correctly, if you are using the rsync server (which MacPorts users do by default, unless they changed it), because the rsync server is broken and needs to be repaired by the system administrator.
Ryan Schmidt
2015-10-13 21:22:37 UTC
Permalink
Post by Sepideh Razavi
hawkeye:1-Analysis srazavi$ sudo port -v -d selfupdate
DEBUG: Copying /Users/srazavi/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences
DEBUG: MacPorts sources location: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
---> Updating MacPorts base sources using rsync
receiving file list ... done
sent 36 bytes received 69 bytes 70.00 bytes/sec
total size is 27013120 speedup is 257267.81
receiving file list ... done
sent 36 bytes received 76 bytes 224.00 bytes/sec
total size is 512 speedup is 4.57
DEBUG: failed verification with key /opt/local/share/macports/macports-pubkey.pem
DEBUG: openssl output: Verification Failure
child process exited abnormally
DEBUG: Failed to verify signature for MacPorts source!
while executing
"macports::selfupdate [array get global_options] base_updated"
Error: Failed to verify signature for MacPorts source!
http://guide.macports.org/#project.tickets
Error: /opt/local/bin/port: port selfupdate failed: Failed to verify signature for MacPorts source!
Yes, we know about this problem and are waiting for the server administrator to resolve it.

https://trac.macports.org/ticket/49233


Your original problem was, as far as I could tell, unrelated, and we need you to run a port installation with the debug flag (such as "sudo port -v install bzip2") to see what the problem was there.
Continue reading on narkive:
Loading...