Selfupdate problem
Ryan Schmidt
ryandesign at macports.org
Mon Sep 7 14:32:04 UTC 2020
On Sep 7, 2020, at 09:25, dan d. wrote:
> Idid the sudo port -d selfupdate as suggested.
>
> At the end of some 784 lines, this
>
> checking for existence of /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/base/vendor/tcl/unix/tclConfig.sh...
> file not found
> checking how to build libraries... shared
> checking that any existing MacPorts install can be upgraded... yes
> configure: creating ./config.status
> config.status: creating src/programs/daemondo/Makefile
> /bin/mv: line 1: e: command not found
> /bin/mv: line 2: syntax error near unexpected token `('
> /bin/mv: line 2: `Ïúíþ^G^A^C^`^B^Q^P^F^e ^YH__PAGEZERO^A^Y(^B__TEXT^A ^G^E^F__text__TEXT^o^K^Aq'
> config.status: error: could not create src/programs/daemondo/Makefile
> Command failed: CC=/usr/bin/cc ./configure --prefix='/opt/local' --with-install-user='root' --with-install-group='wheel' --with-directory-mode='0755'
> --enable-readline && make SELFUPDATING=1 && make install SELFUPDATING=1
> Exit code: 1
>
> Where do I go from here?
That's distressing. It looks like there is something wrong with your /bin/mv. The fact that it's referring to line numbers makes it look like it thinks it's a text file, like a shell script, which it shouldn't be, but then the strings like __PAGEZERO and __TEXT that it's encountering within the file look like normal parts of a Mach-O executable.
Let's see if we can learn more about your /bin/mv... What's the output of:
file /bin/mv
ls -l /bin/mv
/bin/mv
What OS version is this? On OS X 10.11 and later, System Integrity Protection should have prevented any unwanted modifications of system files like /bin/mv, unless you've turned SIP off.
More information about the macports-users
mailing list