简体   繁体   English

在Mac OS X上安装gosu

[英]Installing gosu on Mac OS X

I'm trying to install gosu on my Mac. 我正在尝试在Mac上安装gosu。 I used the command: 我使用了命令:

sudo gem install gosu

After I enter my password, I get something that says: 输入密码后,我得到的提示是:

Building native extensions.  This could take a while...

However, then it comes up with this error: 但是,然后出现此错误:

ERROR: Error installing gosu:
ERROR: Failed to build gem native extension.

Does anyone have any ideas to fix this? 有谁有解决此问题的想法? I don't know why it would be saying this. 我不知道为什么会这样说。

You could try 你可以试试

sudo gem install gosu

if that still does not work, then do the following 如果仍然不起作用,请执行以下操作

- install Homebrew (google it)
- run brew install sdl2.
- run sudo gem install gosu 

If that still doesn't work, then try to see if you can get an answer from here 如果仍然无法解决问题,请尝试从这里获取答案

Hope that helps! 希望有帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM