Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when trying to use brew install - Error: No such file or directory - /usr/sbin/pkgutil #691

Closed
erinamiller opened this issue Jun 5, 2020 · 21 comments

Comments

@erinamiller
Copy link

erinamiller commented Jun 5, 2020

Hi, I'm on OS X 10.4.11 and whenever I try to use brew install after installing tigerbrew, I get Error: No such file or directory - /usr/sbin/pkgutil. Results of brew install git:

==> Installing dependencies for git: xz, gnu-tar, ld64, cctools, expat, p
==> Installing git dependency: xz
==> Downloading https://ia902307.us.archive.org/31/items/tigerbrew/xz-5.2.1.tige
######################################################################### 100.0%
==> Pouring xz-5.2.1.tiger_altivec.bottle.tar.gz
/usr/bin/install_name_tool: object: /usr/local/Cellar/xz/5.2.1/bin/xz malformed object (unknown load command 11)
Error: Failure while executing: /usr/bin/install_name_tool -change @@HOMEBREW_CELLAR@@/xz/5.2.1/lib/liblzma.5.dylib /usr/local/Cellar/xz/5.2.1/lib/liblzma.5.dylib /usr/local/Cellar/xz/5.2.1/bin/xz
Warning: Bottle installation failed: building from source.
==> Downloading http://download.openpkg.org/components/cache/xz/xz-5.2.1.tar.gz
##O=#  #                                                                       
curl: (22) The requested URL returned error: 404 Not Found
Trying a mirror...
==> Downloading http://tukaani.org/xz/xz-5.2.1.tar.gz
==> Downloading from https://tukaani.org/xz/xz-5.2.1.tar.gz
######################################################################### 100.0%######################################################################### 100.0%######################################################################### 100.0%######################################################################### 100.0%
==> ./configure --disable-silent-rules --prefix=/usr/local/Cellar/xz/5.2.1
Last 15 lines from /Users/ryanmiller/Library/Logs/Homebrew/xz/01.configure:
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether ln -s works... yes
checking for style of include used by make... GNU
checking for gcc... gcc-4.0
checking whether the C compiler works... no
configure: error: in `/private/tmp/xz20200605-2442-hbxhq/xz-5.2.1':
configure: error: C compiler cannot create executables
See `config.log' for more details
Error: No such file or directory - /usr/sbin/pkgutil

I thought brew update might fix this, but that requires Git. Any idea how to fix this? Thanks.

@mistydemeo
Copy link
Owner

Can you tar up your logs from ~/Library/Logs/Homebrew/xz and send them to me please? You can put them on gist.github.com. Thanks!

@UD46
Copy link

UD46 commented Jul 5, 2020

I faced same problem ,but after installed developer tools 2.5, work fine now.

@pattyland
Copy link

Same here. I think if would be great if the requirement of Xcode 2.5 would be more prominent in the readme and a notice that the Xcode version 2.1 from the OS X Tiger DVD is not compatible with tigerbrew

@turbolent
Copy link
Contributor

I ran into the same problem on Darwin 8.0.1. Is it possible to install the required components from the Xcode 2.5 DMG manually?

@alollini
Copy link

Mac OS 10.4.11
I have Xcode 2.5 installed and fuctionnal (tried to build Flurry test and it worked)

but I get this while installing postgres :

checking for xmlSaveToBuffer in -lxml2... no
configure: error: library 'xml2' (version >= 2.6.23) is required for XML support
Error: No such file or directory - /usr/sbin/pkgutil

@sevan
Copy link
Collaborator

sevan commented Sep 14, 2023

There's a new version of xz which is packaged up in Tigerbrew, update your tree and try again?

@ballo
Copy link

ballo commented Jan 24, 2024

I'm having the same issue and I definitely ran the XCode 2.5 mpkg installer. I've also run brew doctor

@sevan
Copy link
Collaborator

sevan commented Jan 24, 2024

I'm having the same issue and I definitely ran the XCode 2.5 mpkg installer. I've also run brew doctor

Which version of xz is it trying to build and install? It should be 5.4.4 if your tigerbrew tree is up to date.

@ballo
Copy link

ballo commented Jan 26, 2024

Which version of xz is it trying to build and install? It should be 5.4.4 if your tigerbrew tree is up to date.

I was trying to install nmap

@sevan
Copy link
Collaborator

sevan commented Feb 6, 2024

Make sure you have an up to date copy of tigerbrew/Library/Formula and try again. Latest version of nmap is there, and a much newer version of xz is available also.

@joevt
Copy link

joevt commented Feb 7, 2024

I installed TigerBrew a few hours ago in Mac OS X 10.4.11 Tiger on a B&W G3 with G4 CPU upgrade.

I tried brew install curl and it reported an error No such file or directory - /usr/sbin/pkgutil.

I upgraded from Xcode 2.4 to Xcode 2.5 and there's still no pkgutil.

I copied pkgutil from Leopard but it won't run since it requires /usr/lib/libxar.1.dynlib but I'll try brew install curl anyway to see if the error actually matters.

@sevan
Copy link
Collaborator

sevan commented Feb 7, 2024

I copied pkgutil from Leopard but it won't run since it requires /usr/lib/libxar.1.dynlib but I'll try brew install curl anyway to see if the error actually matters.

You shouldn't need to perform such operations, I'd suggest undoing that change, then attempting the build again. Once it has failed on the subsequent attempt, as Misty requested earlier in this issue:

Can you tar up your logs from ~/Library/Logs/Homebrew/xz and send them to me please? You can put them on gist.github.com. Thanks!

It would be helpful for finding out where it is going wrong.

@sevan
Copy link
Collaborator

sevan commented Feb 8, 2024

Just for a sanity check, I performed a fresh install of Tiger on a G3, got it to 10.4.11, installed xcode 2.5, installed all the updates.
Used the install script for Tigerbrew to get it installed.
export PATH=/usr/local/bit:$PATH then ran brew doctor
Once it was finished, I ran brew install git & on the way to getting everything required installed, it first attempted to build xz 5.4.4, it configured things without issue & built, installed just fine.
It's slowly working toward building curl but I haven't got there yet. :)

@sevan
Copy link
Collaborator

sevan commented Feb 8, 2024

I installed XCode 2.5 from xcode25_8m2558_developerdvd.dmg by running the XcodeTools.mpkg alias in the root of the disk image.
Pressed the Customize button, everything selected with the exception of Mac OS X 10.2.8 Support & WebObjects.

Might be worth uninstalling XCode (if you upgraded to 2.5) and reinstalling 2.5 straight by running sudo /Developer/Library/uninstall-devtools.

@ballo
Copy link

ballo commented Feb 9, 2024

I installed XCode 2.5 after a fresh Tiger install on UTM following the instructions on this project's home page. It doesn't work and I haven't seen a single suggestion here as to why, what the specific problem is, or how to fix it.

I didn't upgrade anything except Tiger (prior to installing XCode, or anything else)

Is pkgutil supposed to be installed with XCode 2.5 or is this a bad dependency? Is there a missing step in the instructions?

@joevt
Copy link

joevt commented Feb 9, 2024

@ballo , are you getting the Error: No such file or directory - /usr/sbin/pkgutil message?

pkgutil isn't supposed to exist on 10.4.11 as far as I can tell no matter what Xcode you have installed.

I think you can just put a blank text file at /usr/sbin/pkguti and try again. I was able to install everything I needed for my flashrom fork by copying a non-working pkgutil from Leopard.

@sevan , the only folders I have in ~/Library/Logs/Homebrew are libusb and libftdi and those don't mention pkgutil.

@sevan
Copy link
Collaborator

sevan commented Feb 9, 2024

@sevan , the only folders I have in ~/Library/Logs/Homebrew are libusb and libftdi and those don't mention pkgutil.

Ah, what does brew list say?

@sevan
Copy link
Collaborator

sevan commented Feb 9, 2024

I installed XCode 2.5 after a fresh Tiger install on UTM following the instructions on this project's home page. It doesn't work and I haven't seen a single suggestion here as to why, what the specific problem is, or how to fix it.

I guess because I'm trying to reproduce the issue on powerpc hardware and have not run into such a problem with the updates which is why I don't have a suggestion. However there may be an issue with the Intel build of Tiger (they're separate versions) and I've not yet attempted to recreate the issue on that. Apologies, I'd assumed it was powerpc because powerpc is on the brain.

@joevt
Copy link

joevt commented Feb 10, 2024

I'm using a B&W G3 with 10.4.11. I haven't tried Intel 10.4.11 but I do have a Virtual Box VM with 10.4.11 installed.

brew list has the following:

cmake
curl
curl-ca-bundle
expat
gettext
git
ldns
libarchive
libftdi
libnghttp2
libusb
make
openssh
openssl3
perl
pkg-config
rhash
zlib

Some of those were installed because they are dependencies of other items. The ones I explicitly installed are:
brew install make
brew install curl git
brew install pkg-config libusb libftdi

@sevan
Copy link
Collaborator

sevan commented Feb 10, 2024

I got the Intel build of Tiger installed on hardware, patched to 10.4.11 + all updates + xcode 2.5 and attempted brew install git once I installed tigerbrew using the install script.
xz installed without issue and I got all the way up to building openssl3 before things came to a halt due to a completely unrelated bug with assembly.
When I attempted things on a g3 earlier, brew built (almost?) everything from source & did not use the bottled binaries.
Looking at joevt's brew list output, some things would've been installed from the bottled binaries there because if they were built from source xz would've been needed to extract the source code, e.g perl.
I didn't need to make any change regarding pkgutil so far, yet.

@sevan
Copy link
Collaborator

sevan commented Jan 7, 2025

Lots of new components have landed since almost a year ago, such as git, flashrom, nmap, libftdi.
Please trying again with an updated tree, if issue persists, file a new bug.

@sevan sevan closed this as completed Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants