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

guidelines for installing on Linux #118

Open
capsulecorplab opened this issue May 2, 2023 · 4 comments
Open

guidelines for installing on Linux #118

capsulecorplab opened this issue May 2, 2023 · 4 comments

Comments

@capsulecorplab
Copy link

Hello! I'm attempting to install 42 from the zip file, 42 20230210.zip downloaded from sourceforge, but have been encountering a non-zero return code while running make 42 && make install for an Ubuntu 22.04 virtual environment. Any ideas as to what could be the problem?

@ericstoneking
Copy link
Owner

I don't know what "make install" does, which means that you don't need it. Try just "make" or "make 42" from the directory where the makefile is. You should get a command-line executable in the same directory.

@capsulecorplab
Copy link
Author

@ericstoneking
Copy link
Owner

Hmm. Your environment is more sophisticated than I am, so I don't know how much help I can be. But if make is generating errors, it might be helpful to see what those errors are. Does /tmp/42_build_output.txt have anything informative in it?

@dmccomas
Copy link

dmccomas commented Sep 5, 2023

I just installed and ran 42 on Windows WSL using Ubuntu 22.04 without any issues. The 5/4/23 logs in this issue have expired so I can't view them. I've had this environment setup for C development prior to trying the 42 installation so I can't step you through a clean install. This is the environment I think you need:

sudo apt update
sudo apt install build-essential g++
sudo apt-get install freeglut3-dev
You may need these if they're not included with the freeglut3-dev package:
sudo apt install libgl-dev libglfw3-dev

A build error like "#include <GL/glut.h> not found" indicates a GL installation issue. If you comment out "GUIFLAG = -D ENABLE_GUI" in the Makefile then you should be able to build and run 42 without graphics just to show that everything except the GUI is working correctly.

To run 42 enter "./42"

You should also issue a "make clean" before you re-building after an erroneous build.

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

3 participants