[MacPorts] #58018: MacPorts fails to run after manual install via tarball
MacPorts
noreply at macports.org
Sun Feb 3 23:39:02 UTC 2019
#58018: MacPorts fails to run after manual install via tarball
--------------------+--------------------
Reporter: dlo | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.5.4
Keywords: | Port:
--------------------+--------------------
Hi all. I used MacPorts a few years back and decided to play around with
it today. Unfortunately I've run into a snag right after the install step.
(Side note: I would recommend explaining to more technical users why
"sudo" is necessary for the default MacPorts installation as it remains
unclear to me after a fair amount of searching around.)
I decided to install MacPorts in my home directory, under $HOME/macports.
My configure command:
{{{
./configure --with-no-root-privileges --prefix=$HOME/macports
}}}
I then ran:
{{{
make && make install
}}}
The last command seemed to run into a few failures, notably:
{{{
chmod -h 555 "/Users/dan/macports/bin/portf" "/Users/dan/macports/bin
/port-tclsh"
chmod: invalid option -- 'h'
Try 'chmod --help' for more information.
make[2]: *** [install] Error 1
make[1]: *** [install] Error 1
make: *** [install] Error 1
}}}
Well, odd, I thought, but I didn't specify anything outside of the
ordinary so figured that this must have been a false alarm. (After some
digging, it turns out that coreutils / GNU chmod acts differently than the
one bundled into macOS. May want to check for that in the configure
step...).
Anywho, I then ran `port install git` to test things out and got this
error message:
{{{
$ port install git
sources_conf must be set in /Users/dan/macports/etc/macports/macports.conf
or in your /Users/dan/.macports/macports.conf file
while executing
"mportinit ui_options global_options global_variations"
Error: /Users/dan/macports/bin/port: Failed to initialize MacPorts,
sources_conf must be set in /Users/dan/macports/etc/macports/macports.conf
or in your /Users/dan/.macports/macports.conf file
}}}
--
Ticket URL: <https://trac.macports.org/ticket/58018>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list