Error installing MacPorts to alternate prefix
Clemens Lang
cal at macports.org
Wed Apr 2 10:25:45 PDT 2014
Hi,
> I've run into an error trying to install MacPorts 2.2.1. Configure
> and make indicated no errors. Make test complained:
>
> >===> making test in src/port1.0
> >/opt/local/bin/tclsh tests/portutil.tcl /opt/dvr/share/macports/Tcl
> >couldn't read file
> >"/opt/dvr/share/macports/Tcl/macports1.0/macports_fastload.tcl": no
> >such file or directory
> > while executing
> >"source [file join [lindex $argv 0] macports1.0 macports_fastload.tcl]"
> > (file "tests/portutil.tcl" line 5)
> >make[2]: *** [test] Error 1
> >make[1]: *** [test] Error 1
> >make: *** [test] Error 1
That's normal and expected to fail if you haven't run make install yet.
The testsuite needs an installed version of MacPorts.
> Possibly being reckless, I went ahead with the make install...which
> wandered off into the weeds, muttering:
>
> >/opt/local/bin/tclsh src/images_to_archives.tcl
> >"/opt/dvr/share/macports/Tcl"
> >can't find package msgcat
> > while executing
> >"package require msgcat"
> > (file "/opt/dvr/share/macports/Tcl/registry2.0/registry.tcl" line 40)
> > invoked from within
> >"source /opt/dvr/share/macports/Tcl/registry2.0/registry.tcl"
> > ("package ifneeded registry 1.0" script)
> > invoked from within
> >"package require registry 1.0"
> > (file "src/images_to_archives.tcl" line 10)
> >make: *** [install] Error 1
That suggests you are building against Tcl 8.6, possibly because you have the
Tcl port installed and didn't remove $prefix from your $PATH while
configuring MacPorts. MacPorts currently doesn't support Tcl 8.6.
--
Clemens Lang
More information about the macports-dev
mailing list