Opened 6 years ago
Last modified 6 years ago
#58084 new defect
perl5.28: install_name_tool: malformed object (unknown load command 9)
Reported by: | QuRyu (Qingbo Liu) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.5.4 |
Keywords: | Cc: | mojca (Mojca Miklavec) | |
Port: | perl5.28 |
Description
I am running on macOS Mojave 10.14.3. I tried to install perl 5.28.1 but the installation failed. I followed through the log file and executed the command which the log says failed. The second file is the output I got from executing the make instruction. The perl installed on my system by default is version 5.18.2 in /usr/bin/perl.
Attachments (2)
Change History (8)
Changed 6 years ago by QuRyu (Qingbo Liu)
Changed 6 years ago by QuRyu (Qingbo Liu)
Attachment: | make_output.txt added |
---|
comment:1 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | staging destroot installation failure removed |
---|---|
Port: | perl5.28 added |
Summary: | installing Perl: staging failed → perl5.28: install_name_tool: malformed object (unknown load command 9) |
comment:2 Changed 6 years ago by QuRyu (Qingbo Liu)
To update install_name_tool
, should I just delete it and expect Xcode to download a new one? I reinstalled Xcode and have xcode-select
now pointing to the correct place. But install_name_tool
is still kept intact.
comment:3 Changed 6 years ago by QuRyu (Qingbo Liu)
Also software update says that "No new software available" with softwareupdate --list
.
comment:4 Changed 6 years ago by QuRyu (Qingbo Liu)
The current version of install_name_tool
on my mac is
/usr/bin/install_name_tool:
/usr/lib/libxcselect.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.200.5)
comment:5 Changed 6 years ago by jmroot (Joshua Root)
Cc: | mojca added |
---|
That doesn't actually tell us anything because (a) /usr/bin/install_name_tool is just a shim that runs the actual program inside Xcode, and (b) otool -L only shows the versions of the libraries an executable is linked with, not the version of the executable itself.
More helpful might be xcodebuild -version
and xcrun --find install_name_tool
.
comment:6 Changed 6 years ago by QuRyu (Qingbo Liu)
xcodebuild -version
gives
Xcode 10.1
Build version 10B61
and xcrun -find install_name_tool
prints
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/install_name_tool
The log says:
This suggests your
install_name_tool
command is too old. Please reinstall the correct version. It's part of Xcode and/or the command line tools.