arcsim icon indicating copy to clipboard operation
arcsim copied to clipboard

problem: how to install in Mac M1

Open taoningxiao opened this issue 3 years ago • 6 comments

Hello, I have just met some problems in running the install.sh in m1 Mac. when run 'make' in the dependencies folder, it comes with an AttributeError: 'module' object has no attribute 'getoutput', could you tell me what's the problem?

taoningxiao avatar Jul 21 '22 05:07 taoningxiao

To be honest, I have never tested the Macbook version myself, since I don't have one... Perhaps @cbhua may know more about it?

fedebotu avatar Jul 21 '22 08:07 fedebotu

thank you very much!

taoningxiao avatar Jul 21 '22 12:07 taoningxiao

Hello, thanks for rising the issue. This error is mostly a problem with your Python, maybe the install, maybe the version. Simply try import subprocess; subprocess.getoutput('ls /bin/ls') to see if the Python environment works in a proper way.

In Python official doc they say this method support POSIC OS, so in macOS it theoretically should work. And I tested it works in my laptop.

This refer may help: https://docs.python.org/3/library/subprocess.html.

cbhua avatar Jul 23 '22 18:07 cbhua

Same problem here...

I triple checked, and all dependencies are installed.

@cbhua @yellowpeachw , did you find a solution?

MacBook-Air ~ % cd arcsim MacBook-Air arcsim % sudo chmod +x install.sh && sudo ./install.sh

Password: Operating system: Darwin WARNING: you firstly may need to install the necessary packages for your OS as described in the INSTALL file / install.sh script! Running make on dependencies folder. Grab a cup of coffee, this will take a while. cd jsoncpp && scons platform=linux-gcc /bin/sh: scons: command not found make: *** [lib/libjson.a] Error 127 ERROR: Make error on dependencies occurred. Exiting... MacBook-Air arcsim %

alelordelo avatar Sep 08 '22 14:09 alelordelo

On a Mac you can use homebrew to install scons:

brew install scons

That will get you past this error, but many many more after that. I'm not sure it will be possible to get this code to build on a Mac without a massive effort.

charles-owen avatar Dec 10 '23 22:12 charles-owen

We haven't used this in a while, but as you mentioned @charles-owen it may be a lengthy process given the differences in repos between Mac and Linux (ps: also M1 Macs will most probably have slightly different requirements). If you find a way to make it work, feel free to contribute :)

fedebotu avatar Dec 11 '23 01:12 fedebotu