Based on @ jm666's suggestion, I discovered the source of the problem (at least one of them).
What I've done:
- Removed perlbrew:
rm -rf ~/perl5/* ~/.perlbrew - Completely removed
macports - New
macports package installed
And I tried installing regular MacPorts and after each installed port I launched a new terminal / shell and tried to install perlbrew .
After I installed the wget port, perlbrew installation failed (installing patchperl). After removing the wget port, perlbrew will install OK again.
For the log, install wget:
$ sudo port install wget ---> Computing dependencies for wget ---> Dependencies to be installed: gnutls libidn libtasn1 nettle p11-kit curl-ca-bundle desktop-file-utils glib2 libffi popt libxslt libxml2 xz libgcrypt libgpg-error pcre bzip2 libedit ---> Fetching archive for libidn ---> Attempting to fetch libidn-1.26_0.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/libidn ---> Attempting to fetch libidn-1.26_0.darwin_13.x86_64.tbz2.rmd160 from http://lil.fr.packages.macports.org/libidn ---> Installing libidn @1.26_0 ---> Activating libidn @1.26_0 ---> Cleaning libidn ---> Fetching archive for libtasn1 ---> Attempting to fetch libtasn1-2.11_0.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/libtasn1 ---> Attempting to fetch libtasn1-2.11_0.darwin_13.x86_64.tbz2.rmd160 from http://lil.fr.packages.macports.org/libtasn1 ---> Installing libtasn1 @2.11_0 ---> Activating libtasn1 @2.11_0 ---> Cleaning libtasn1 ---> Fetching archive for nettle ---> Attempting to fetch nettle-2.6_1.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/nettle ---> Attempting to fetch nettle-2.6_1.darwin_13.x86_64.tbz2.rmd160 from http://lil.fr.packages.macports.org/nettle ---> Installing nettle @2.6_1 ---> Activating nettle @2.6_1 ---> Cleaning nettle ---> Fetching archive for curl-ca-bundle ---> Attempting to fetch curl-ca-bundle-7.34.0_0.darwin_13.noarch.tbz2 from http://lil.fr.packages.macports.org/curl-ca-bundle ---> Attempting to fetch curl-ca-bundle-7.34.0_0.darwin_13.noarch.tbz2.rmd160 from http://lil.fr.packages.macports.org/curl-ca-bundle ---> Installing curl-ca-bundle @7.34.0_0 ---> Activating curl-ca-bundle @7.34.0_0 ---> Cleaning curl-ca-bundle ---> Fetching archive for libffi ---> Attempting to fetch libffi-3.0.13_0.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/libffi ---> Attempting to fetch libffi-3.0.13_0.darwin_13.x86_64.tbz2.rmd160 from http://lil.fr.packages.macports.org/libffi ---> Installing libffi @3.0.13_0 ---> Activating libffi @3.0.13_0 ---> Cleaning libffi ---> Fetching archive for glib2 ---> Attempting to fetch glib2-2.38.2_0.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/glib2 ---> Attempting to fetch glib2-2.38.2_0.darwin_13.x86_64.tbz2.rmd160 from http://lil.fr.packages.macports.org/glib2 ---> Installing glib2 @2.38.2_0 ---> Activating glib2 @2.38.2_0 ---> Cleaning glib2 ---> Fetching archive for popt ---> Attempting to fetch popt-1.16_0.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/popt ---> Attempting to fetch popt-1.16_0.darwin_13.x86_64.tbz2.rmd160 from http://lil.fr.packages.macports.org/popt ---> Installing popt @1.16_0 ---> Activating popt @1.16_0 ---> Cleaning popt ---> Fetching archive for desktop-file-utils ---> Attempting to fetch desktop-file-utils-0.15_1.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/desktop-file-utils ---> Attempting to fetch desktop-file-utils-0.15_1.darwin_13.x86_64.tbz2.rmd160 from http://lil.fr.packages.macports.org/desktop-file-utils ---> Installing desktop-file-utils @0.15_1 ---> Activating desktop-file-utils @0.15_1 ---> Cleaning desktop-file-utils ---> Fetching archive for xz ---> Attempting to fetch xz-5.0.5_0.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/xz ---> Attempting to fetch xz-5.0.5_0.darwin_13.x86_64.tbz2.rmd160 from http://lil.fr.packages.macports.org/xz ---> Installing xz @5.0.5_0 ---> Activating xz @5.0.5_0 ---> Cleaning xz ---> Fetching archive for libxml2 ---> Attempting to fetch libxml2-2.9.1_0.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/libxml2 ---> Attempting to fetch libxml2-2.9.1_0.darwin_13.x86_64.tbz2.rmd160 from http://lil.fr.packages.macports.org/libxml2 ---> Installing libxml2 @2.9.1_0 ---> Activating libxml2 @2.9.1_0 ---> Cleaning libxml2 ---> Fetching archive for libxslt ---> Attempting to fetch libxslt-1.1.28_0.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/libxslt ---> Attempting to fetch libxslt-1.1.28_0.darwin_13.x86_64.tbz2.rmd160 from http://lil.fr.packages.macports.org/libxslt ---> Installing libxslt @1.1.28_0 ---> Activating libxslt @1.1.28_0 ---> Cleaning libxslt ---> Fetching archive for p11-kit ---> Attempting to fetch p11-kit-0.20.1_0.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/p11-kit ---> Attempting to fetch p11-kit-0.20.1_0.darwin_13.x86_64.tbz2.rmd160 from http://lil.fr.packages.macports.org/p11-kit ---> Installing p11-kit @0.20.1_0 ---> Activating p11-kit @0.20.1_0 ---> Cleaning p11-kit ---> Fetching archive for gnutls ---> Attempting to fetch gnutls-3.1.10_1.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/gnutls ---> Attempting to fetch gnutls-3.1.10_1.darwin_13.x86_64.tbz2.rmd160 from http://lil.fr.packages.macports.org/gnutls ---> Installing gnutls @3.1.10_1 ---> Activating gnutls @3.1.10_1 ---> Cleaning gnutls ---> Fetching archive for libgpg-error ---> Attempting to fetch libgpg-error-1.12_0.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/libgpg-error ---> Attempting to fetch libgpg-error-1.12_0.darwin_13.x86_64.tbz2.rmd160 from http://lil.fr.packages.macports.org/libgpg-error ---> Installing libgpg-error @1.12_0 ---> Activating libgpg-error @1.12_0 ---> Cleaning libgpg-error ---> Fetching archive for libgcrypt ---> Attempting to fetch libgcrypt-1.5.3_0.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/libgcrypt ---> Attempting to fetch libgcrypt-1.5.3_0.darwin_13.x86_64.tbz2.rmd160 from http://lil.fr.packages.macports.org/libgcrypt ---> Installing libgcrypt @1.5.3_0 ---> Activating libgcrypt @1.5.3_0 ---> Cleaning libgcrypt ---> Fetching archive for bzip2 ---> Attempting to fetch bzip2-1.0.6_0.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/bzip2 ---> Attempting to fetch bzip2-1.0.6_0.darwin_13.x86_64.tbz2.rmd160 from http://lil.fr.packages.macports.org/bzip2 ---> Installing bzip2 @1.0.6_0 ---> Activating bzip2 @1.0.6_0 ---> Cleaning bzip2 ---> Fetching archive for libedit ---> Attempting to fetch libedit-20121213-3.0_0.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/libedit ---> Attempting to fetch libedit-20121213-3.0_0.darwin_13.x86_64.tbz2.rmd160 from http://lil.fr.packages.macports.org/libedit ---> Installing libedit @20121213-3.0_0 ---> Activating libedit @20121213-3.0_0 ---> Cleaning libedit ---> Fetching archive for pcre ---> Attempting to fetch pcre-8.33_1.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/pcre ---> Attempting to fetch pcre-8.33_1.darwin_13.x86_64.tbz2.rmd160 from http://lil.fr.packages.macports.org/pcre ---> Installing pcre @8.33_1 ---> Activating pcre @8.33_1 ---> Cleaning pcre ---> Fetching archive for wget ---> Attempting to fetch wget-1.14_5+ssl.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/wget ---> Attempting to fetch wget-1.14_5+ssl.darwin_13.x86_64.tbz2.rmd160 from http://lil.fr.packages.macports.org/wget ---> Installing wget @1.14_5+ssl ---> Activating wget @1.14_5+ssl To customize wget, you can copy /opt/local/etc/wgetrc.sample to /opt/local/etc/wgetrc and then make changes. ---> Cleaning wget ---> Updating database of binaries: 100.0% ---> Scanning binaries for linking errors: 100.0% ---> No broken files found.
perlbrew curl -kL http://install.perlbrew.pl | bash curl -kL http://install.perlbrew.pl | bash failed to execute
ERROR: Failed to retrieve patchperl executable.
Removing the wget port:
$ sudo port uninstall wget ---> Deactivating wget @1.14_5+ssl ---> Cleaning wget ---> Uninstalling wget @1.14_5+ssl ---> Cleaning wget $ $ rm -rf ~/perl5/perlbrew/ ~/.perlbrew/ $ curl -kL http://install.perlbrew.pl | bash % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 315 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 1020 100 1020 0 0 1551 0 --:--:-- --:--:-- --:--:-- 1551 ## Download the latest perlbrew ## Installing perlbrew perlbrew is installed: ~/perl5/perlbrew/bin/perlbrew perlbrew root (~/perl5/perlbrew) is initialized. Append the following piece of code to the end of your ~/.bash_profile and start a new shell, perlbrew should be up and fully functional from there: source ~/perl5/perlbrew/etc/bashrc Simply run `perlbrew` for usage details. Happy brewing!
Conclusion: Something goes wrong with the combination of MacPorts wget and perlbrew .
Nemo
source share