Guest Posted August 10, 2009 Share Posted August 10, 2009 I'm trying to compile to compile [Naked MUD 3.8.1](http://homepages.uc.edu/~hollisgf/nakedmud.html). I'm pretty ecstatic about it because it uses Python as a scripting language. However, I'm trying to compile the source folder using the command make on Ubuntu. This returns:```Compiling gameloop.cIn file included from gameloop.c:39:scripts/scripts.h:25:20: error: Python.h: No such file or directoryscripts/scripts.h:26:26: error: structmember.h: No such file or directoryIn file included from gameloop.c:39:scripts/scripts.h:73: error: expected declaration specifiers or ‘...’ before ‘PyObject’scripts/scripts.h:88: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ tokenscripts/scripts.h:89: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ tokenscripts/scripts.h:90: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ tokenscripts/scripts.h:91: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ tokenscripts/scripts.h:92: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ tokenscripts/scripts.h:97: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ tokenscripts/scripts.h:98: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ tokenscripts/scripts.h:99: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ tokenscripts/scripts.h:100: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ tokenscripts/scripts.h:101: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ tokenscripts/scripts.h:108: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ tokenscripts/scripts.h:112: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ tokenscripts/scripts.h:143: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ tokenscripts/scripts.h:144: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ tokenscripts/scripts.h:150: error: expected ‘)’ before ‘*’ tokenscripts/scripts.h:155: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ tokenscripts/scripts.h:162: error: expected ‘)’ before ‘*’ tokenscripts/scripts.h:167: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ tokenscripts/scripts.h:184: error: expected declaration specifiers or ‘...’ before ‘PyObject’scripts/scripts.h:189: error: expected declaration specifiers or ‘...’ before ‘PyObject’scripts/scripts.h:195: error: expected declaration specifiers or ‘...’ before ‘PyObject’gameloop.c: In function ‘main’:gameloop.c:133: warning: implicit declaration of function ‘time’gameloop.c:182: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_resultmake: *** [gameloop.o] Error 1```I have gcc and make installed. Help is greatly appreciated. Link to comment Share on other sites More sharing options...
Godlord Posted August 10, 2009 Share Posted August 10, 2009 @clamsd101:> I'm trying to compile to compile [Naked MUD 3.8.1](http://homepages.uc.edu/~hollisgf/nakedmud.html). I'm pretty ecstatic about it because it uses Python as a scripting language. However, I'm trying to compile the source folder using the command make on Ubuntu. This returns:> ```> Compiling gameloop.c> In file included from gameloop.c:39:> scripts/scripts.h:25:20: error: Python.h: No such file or directory> scripts/scripts.h:26:26: error: structmember.h: No such file or directory> In file included from gameloop.c:39:> scripts/scripts.h:73: error: expected declaration specifiers or ‘...’ before ‘PyObject’> scripts/scripts.h:88: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token> scripts/scripts.h:89: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token> scripts/scripts.h:90: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token> scripts/scripts.h:91: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token> scripts/scripts.h:92: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token> scripts/scripts.h:97: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token> scripts/scripts.h:98: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token> scripts/scripts.h:99: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token> scripts/scripts.h:100: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token> scripts/scripts.h:101: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token> scripts/scripts.h:108: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token> scripts/scripts.h:112: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token> scripts/scripts.h:143: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token> scripts/scripts.h:144: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token> scripts/scripts.h:150: error: expected ‘)’ before ‘*’ token> scripts/scripts.h:155: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token> scripts/scripts.h:162: error: expected ‘)’ before ‘*’ token> scripts/scripts.h:167: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token> scripts/scripts.h:184: error: expected declaration specifiers or ‘...’ before ‘PyObject’> scripts/scripts.h:189: error: expected declaration specifiers or ‘...’ before ‘PyObject’> scripts/scripts.h:195: error: expected declaration specifiers or ‘...’ before ‘PyObject’> gameloop.c: In function ‘main’:> gameloop.c:133: warning: implicit declaration of function ‘time’> gameloop.c:182: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result> make: *** [gameloop.o] Error 1> > ```> I have gcc and make installed. Help is greatly appreciated.It says you don't have Python.h which means you don't have the Python SDK/development files installed. Open a terminal and try apt-get install python-dev.The other errors currently make no sense and I'm not sure if they're caused by the missing python-dev or not.Regards, Godlord. Link to comment Share on other sites More sharing options...
Guest Posted August 10, 2009 Share Posted August 10, 2009 I already have python-dev installed. :sad:EDIT: Trying python3-dev, cause the repository python is 2.6 iirc. Worth a shot.EDIT: It says it needs python 2.3 or above. Link to comment Share on other sites More sharing options...
Godlord Posted August 10, 2009 Share Posted August 10, 2009 @clamsd101:> I already have python-dev installed. :sad:> > EDIT: Trying python3-dev, cause the repository python is 2.6 iirc. Worth a shot.> > EDIT: It says it needs python 2.3 or above.Sounds like an invalid include then.The headers in development packages usually get installed into /usr/include/ which is the root of your header directory. Check that location.Regards, Godlord. Link to comment Share on other sites More sharing options...
Guest Posted August 10, 2009 Share Posted August 10, 2009 I see python 2.5, 2.6, and 3.0\. They all contain a Python.h. Link to comment Share on other sites More sharing options...
Godlord Posted August 10, 2009 Share Posted August 10, 2009 @clamsd101:> I see python 2.5, 2.6, and 3.0\. They all contain a Python.h.What are the full paths?Regards, Godlord. Link to comment Share on other sites More sharing options...
Guest Posted August 10, 2009 Share Posted August 10, 2009 /usr/include/python2.5/Python.h is well Python 2.5/usr/include/python2.6/Python.h/usr/include/python3.0/Python.hWhere the source for Naked MUD is:/home/karl/Desktop/Naked Mud codebase/nakedmudv3.8.1/src/ Link to comment Share on other sites More sharing options...
Godlord Posted August 10, 2009 Share Posted August 10, 2009 Try #include , if that doesn't work then check if /usr/include/ is actually added to your compiler.Regards, Godlord. Link to comment Share on other sites More sharing options...
Guest Posted August 10, 2009 Share Posted August 10, 2009 Adding #include now makes```Building dependencies for help2/help.cBuilding dependencies for alias/alias.cBuilding dependencies for time/time.cBuilding dependencies for scripts/pyolc.cBuilding dependencies for scripts/trighooks.cBuilding dependencies for scripts/trigedit.cBuilding dependencies for scripts/triggers.cBuilding dependencies for scripts/pyevent.cBuilding dependencies for scripts/script_editor.cBuilding dependencies for scripts/pysocket.cBuilding dependencies for scripts/pyaccount.cBuilding dependencies for scripts/pyexit.cBuilding dependencies for scripts/pyroom.cBuilding dependencies for scripts/pyhooks.cBuilding dependencies for scripts/pymudsys.cBuilding dependencies for scripts/pymud.cBuilding dependencies for scripts/pyobj.cBuilding dependencies for scripts/pychar.cBuilding dependencies for scripts/scripts.cBuilding dependencies for items/worn.cBuilding dependencies for items/furniture.cBuilding dependencies for items/container.cBuilding dependencies for items/iedit.cBuilding dependencies for items/portal.cBuilding dependencies for items/items.cBuilding dependencies for editor/notepad.cBuilding dependencies for editor/editor.cBuilding dependencies for olc2/olc_extender.cBuilding dependencies for olc2/protedit.cBuilding dependencies for olc2/oedit.cBuilding dependencies for olc2/medit.cBuilding dependencies for olc2/redit.cBuilding dependencies for olc2/olc.cBuilding dependencies for command.cBuilding dependencies for parse.cBuilding dependencies for prototype.cBuilding dependencies for room_reset.cBuilding dependencies for socket.cBuilding dependencies for handler.cBuilding dependencies for interpret.cBuilding dependencies for gameloop.cCompiling gameloop.cIn file included from gameloop.c:39:scripts/scripts.h:26:26: error: structmember.h: No such file or directorygameloop.c: In function ‘main’:gameloop.c:182: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_resultmake: *** [gameloop.o] Error 1``` Link to comment Share on other sites More sharing options...
Godlord Posted August 10, 2009 Share Posted August 10, 2009 Check a guide on compiling the MUD on what you need or Google the header because I've never heard of structmember.h.Regards, Godlord. Link to comment Share on other sites More sharing options...
Guest Posted August 10, 2009 Share Posted August 10, 2009 Here's the startup.txt:> Startup should be pretty easy. To compile, simply go into the src directory and> type "make". Everything should compile automagically. From here, to start, you> simply type ./NakedMud [port] & If you do not supply a port, the MUD will> start up on port 4000 by default.> > If you're having troubles compiling when it gets to the scripts, you will want> to read src/scripts/module.mk> > If you've got other problems and cannot figure out what to do, you can try> giving me a description of your problem, and I'll see if I can help you out. No> promises, though.> > Geoff Hollis> [email protected]> http://www.uc.edu/~hollisgf/Looks like I'm researching and emailing Geoff Hollis.I like how he uses the word "automagically".EDIT:OH!```If you're having troubles compiling when it gets to the scripts, you will wantto read src/scripts/module.mk``` Link to comment Share on other sites More sharing options...
Godlord Posted August 10, 2009 Share Posted August 10, 2009 Automagically is a common word as for tutorials and guides. It's very odd that he doesn't mention what packages you need.Regards, Godlord. Link to comment Share on other sites More sharing options...
Guest Posted August 10, 2009 Share Posted August 10, 2009 Oddly enough, locate Python.h only finds /usr/include/python2.5/Python.h and /usr/include/python2.6/Python.h, not /usr/include/python3.0/Python.h Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now