installaware / AGPT

Apple Game Porting Toolkit Installer
GNU General Public License v3.0
388 stars 14 forks source link

Fails at installing wine #30

Closed austinthetaco closed 8 months ago

austinthetaco commented 9 months ago
image

I have space, i did not have homebrew pre installed. It fails every time. I also have plenty of space on the drive. Currently on Ventura 13.1

hugo4711 commented 9 months ago

You need to set a new limit for open files on your system and then reboot for those changes to take effect:

/etc/launchd.conf 
limit maxfiles 4096 20480

/etc/sysctl.conf 
kern.maxfiles=20480
janeklb commented 9 months ago

I didn't want to touch my system files (risk making permanent changes to sane/system defaults), so the following worked for me (in a terminal, after having mounted the .dmg file):

# (temporarily) increase the limit for this terminal session
ulimit -n 2048
# run the installer from the terminal
open "/Volumes/Game Porting Toolkit Installer/Game Porting Toolkit Installer.app"
bart9k commented 9 months ago

I have similar issue but with bit different error message Error: Too many open files - /usr/bin/xcrun clang 2>&1 I've tried ulimit command and start installer from the same terminal. Thare are no such confics in /etc as mentioned here I've also tried to restart computer MacBook Air, M1 2020, MacOs 13.5 (22G74)

Updating system to 14.3 allowed me to successfully install but after a day it stopped working as 14.3 not supported OS

mxwllwhtly commented 9 months ago

any advice on the above?

mxwllwhtly commented 9 months ago

You need to set a new limit for open files on your system and then reboot for those changes to take effect:

/etc/launchd.conf 
limit maxfiles 4096 20480

/etc/sysctl.conf 
kern.maxfiles=20480

please can you explain this further?

nikita-fuchs commented 9 months ago

I didn't want to touch my system files (risk making permanent changes to sane/system defaults), so the following worked for me (in a terminal, after having mounted the .dmg file):

# (temporarily) increase the limit for this terminal session
ulimit -n 2048
# run the installer from the terminal
open "/Volumes/Game Porting Toolkit Installer/Game Porting Toolkit Installer.app"

@mxwllwhtly I recommend this solution.

janeklb commented 9 months ago

If you get the same error, try increasing the number to something (much) bigger.

2048 worked for me after I had manually installed all the brew packages that the tool installs (except for the last one, afair), so it probably opens up more files if you're missing more than a handful of them.

Pulsar2011 commented 9 months ago

I have a system for which I didn't get the error (mac Mini M2 pro ship) and an other one which does (Mac boock pro M2 pro ship).

ulimit say I am unlimited in the number of file: ulimit > unlimited

And system wide configuration show I am pretty high compared to the number mentionned above.

sysctl kern.maxfiles > kern.maxfiles: 122880 sysctl kern.maxfilesperproc > kern.maxfilesperproc: 61440

I still can multiply this number with sysctl -w kern.maxfiles=1228800 (or any number) sysctl -w kern.maxfilesperproc=614400 (or any number)

but the problem persists (I did also try modifying the file but /etc/launchd.conf and /etc/sysctl.conf without any success.)

installaware commented 8 months ago

Please try again with the latest release.