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

Linux: can't run or compile #14

Open
qubodup opened this issue Jun 29, 2015 · 2 comments
Open

Linux: can't run or compile #14

qubodup opened this issue Jun 29, 2015 · 2 comments

Comments

@qubodup
Copy link

qubodup commented Jun 29, 2015

Hi,

I can't run on Linux, even though make seems to run ok.

$ make
rm -f monorail/ai.c monorail/ai.so
rm -rf monorail/data
running build_ext
pyrexc monorail/ai.pyx --> monorail/ai.c
/home/qubodup/MysticMine-master/monorail/ai.pyx:22:24: Warning: 'not None' will become the default in a future version of Pyrex. Use 'or None' to allow passing None.
building 'monorail.ai' extension
gcc -pthread -fno-strict-aliasing -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -fPIC -I/usr/include/python2.7 -c monorail/ai.c -o build/temp.linux-x86_64-2.7/monorail/ai.o
gcc -pthread -shared -Wl,-O1,--sort-common,--as-needed,-z,relro build/temp.linux-x86_64-2.7/monorail/ai.o -L/usr/lib -lpython2.7 -o /home/qubodup/MysticMine-master/monorail/ai.so
ln -s /home/qubodup/MysticMine-master/data/800x600/ monorail/data

$ ./MysticMine
Error: ai module not present. Run 'make' first!

I'm on ArchLinux. Perhaps this has something to do with the python2/python=python3 chaos.

@Joooo
Copy link

Joooo commented Jul 20, 2015

Hey, I had the same issue and worked around by installing python2-numarray and replacing line 4 of monorail/koon/gfx.py with
from numarray import array
Possibly related
Also, dependencies may be missing so see the output of
python2 -c "import monorail.ai"
if that doesn't work.

@qubodup
Copy link
Author

qubodup commented Jul 20, 2015

@Joooo Thanks! That solves it for me. I can't determine whether this is because of an issue with Arch Linux though, so I'll leave closing to somebody else :)

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

2 participants