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

Improve instructions in README for Linux #6

Open
wants to merge 1 commit into
base: nodocker
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 27 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ NOTE: Currently, ONLY PYTHON works outside docker on windows. This will be fixed
Install Python 3 and [homebrew](https://brew.sh/):
http://docs.python-guide.org/en/latest/starting/install3/osx/

~~~~
# In a terminal this can be done using
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install python3
~~~~

Once you have python 3 installed, open a terminal (the app is at /Applications/Utilities/Terminal.app).

In the terminal, run the following command:
Expand All @@ -60,7 +66,7 @@ Next, run `brew install libffi`.

Next, copy over the new run.sh and run.bat files from the examplefuncsplayer folders into your player folders. (If your bot is python, copy over the python run.sh and run.bat scripts, and so on.)

Finally, cd to the directory you downloaded this repository to.
Finally, `cd` to the directory you downloaded this repository to.

Run: `./run_nodocker.sh`

Expand All @@ -71,8 +77,28 @@ If you're running java bots, you'll need the jdk 8 on your PATH, and if you're r
### Linux
You need python 3.6, libffi-dev, and linux-headers. Install them via your package manager. Then run `run_nodocker.sh`.

~~~~
# Most (all?) of these can be installed using
sudo apt install make software-properties-common build-essential

# On Ubuntu 16.04 and similar ubuntu versions before Ubuntu 17 it can be a bit tricky to install python3.6.
# You will need to do this:
sudo add-apt-repository ppa:jonathonf/python-3.6
sudo apt update
sudo apt install python3.6
~~~~

If you're running java bots, you'll need the jdk 8 on your PATH, and if you're running c bots, you'll need gcc.

If you do not have java installed, you can install it using
~~~~
sudo apt install default-jdk
~~~~

Finally you can run
~~~~
./run_nodocker.sh
~~~~

## Playing with docker

Expand Down