summaryrefslogtreecommitdiff
path: root/INSTALL.md
diff options
context:
space:
mode:
authorSean <sean@tox.im>2014-01-25 19:02:47 -0800
committerSean <sean@tox.im>2014-01-25 19:02:47 -0800
commit2ead95b56bb11643d6d3edb911e22a52c2fb6b68 (patch)
tree751d5ffbc04afbed85884a999cb0474c3fc4d1ff /INSTALL.md
parentc766ff95d023b905ad6ded50e57bb89e94627693 (diff)
made install.md Unix friendly
Diffstat (limited to 'INSTALL.md')
-rw-r--r--INSTALL.md38
1 files changed, 10 insertions, 28 deletions
diff --git a/INSTALL.md b/INSTALL.md
index 03e3da2c..4f98831d 100644
--- a/INSTALL.md
+++ b/INSTALL.md
@@ -1,7 +1,7 @@
1#Install Instructions 1#Install Instructions
2 2
3- [Installation](#installation) 3- [Installation](#installation)
4 - [Linux](#linux) 4 - [Unix like (Linux)](#unix)
5 - [OS X](#osx) 5 - [OS X](#osx)
6 - [Homebrew](#homebrew) 6 - [Homebrew](#homebrew)
7 - [Non-Homebrew](#non-homebrew) 7 - [Non-Homebrew](#non-homebrew)
@@ -10,11 +10,15 @@
10<a name="installation" /> 10<a name="installation" />
11##Installation 11##Installation
12 12
13<a name="linux" /> 13<a name="unix" />
14###Linux: 14###Most Unix like OSes (Linux):
15 15
16Build dependencies: 16Build dependencies:
17 17
18Note: package fetching commands may vary by OS.
19
20On Ubuntu:
21
18```bash 22```bash
19sudo apt-get install build-essential libtool autotools-dev automake libconfig-dev ncurses-dev checkinstall check git libswscale-dev libsdl-dev libopenal-dev libopus-dev libvpx-dev yasm 23sudo apt-get install build-essential libtool autotools-dev automake libconfig-dev ncurses-dev checkinstall check git libswscale-dev libsdl-dev libopenal-dev libopus-dev libvpx-dev yasm
20``` 24```
@@ -24,7 +28,7 @@ On Fedora:
24```bash 28```bash
25yum groupinstall "Development Tools" 29yum groupinstall "Development Tools"
26yum install libtool autoconf automake libconfig-devel ncurses-devel check check-devel 30yum install libtool autoconf automake libconfig-devel ncurses-devel check check-devel
27``` 31```
28 32
29Note that `libconfig-dev` should be >= 1.4. 33Note that `libconfig-dev` should be >= 1.4.
30 34
@@ -54,7 +58,7 @@ make check
54sudo make install 58sudo make install
55cd .. 59cd ..
56``` 60```
57If your default prefix is /usr/local and you happen to get an error that says "error while loading shared libraries: libtoxcore.so.0: cannot open shared object file: No such file or directory", then you can try running ```sudo ldconfig```. If that doesn't fix it, run: 61If your default prefix is /usr/local and you happen to get an error that says "error while loading shared libraries: libtoxcore.so.0: cannot open shared object file: No such file or directory", then you can try running ```sudo ldconfig```, this is an issue common on Linux. If that doesn't fix it, run:
58``` 62```
59echo '/usr/local/lib/' | sudo tee -a /etc/ld.so.conf.d/locallib.conf 63echo '/usr/local/lib/' | sudo tee -a /etc/ld.so.conf.d/locallib.conf
60sudo ldconfig 64sudo ldconfig
@@ -100,13 +104,6 @@ The following libraries are required along with libsodium and cmake for Mountain
100There are no binaries/executables going to /bin/ or /usr/bin/ now. Everything is compiled and ran from the inside your local branch. See [Usage](#usage) below. 104There are no binaries/executables going to /bin/ or /usr/bin/ now. Everything is compiled and ran from the inside your local branch. See [Usage](#usage) below.
101<a name="homebrew" /> 105<a name="homebrew" />
102####Homebrew: 106####Homebrew:
103To install from the formula:
104```bash
105brew tap Tox/tox
106brew install --HEAD libtoxcore
107```
108
109To do it manually:
110``` 107```
111brew install libtool automake autoconf libconfig libsodium check 108brew install libtool automake autoconf libconfig libsodium check
112``` 109```
@@ -119,21 +116,6 @@ autoreconf -i
119make 116make
120make install 117make install
121``` 118```
122
123If execution fails with errors like "dyld: Library not loaded: /opt/tox-im/lib/libtoxcore.0.dylib", you may need to specify libsodium path:
124
125Determine paths:
126```
127brew list libsodium
128```
129
130Configure include and lib folder and build again:
131```bash
132./configure--with-libsodium-headers=/usr/local/Cellar/libsodium/0.4.5/include/ --with-libsodium-libs=/usr/local/Cellar/libsodium/0.4.5/lib/
133make
134make install
135```
136
137Advance configure options: 119Advance configure options:
138 - --prefix=/where/to/install 120 - --prefix=/where/to/install
139 - --with-libsodium-headers=/path/to/libsodium/include/ 121 - --with-libsodium-headers=/path/to/libsodium/include/
@@ -201,7 +183,7 @@ You should install:
201 - [MinGW](http://sourceforge.net/projects/mingw/) 183 - [MinGW](http://sourceforge.net/projects/mingw/)
202 184
203When installing MinGW, make sure to select the MSYS option in the installer. 185When installing MinGW, make sure to select the MSYS option in the installer.
204MinGW will install an "MinGW shell" (you should get a shortcut for it), make sure to perform all operations (i.e. generating/running configure script, compiling, etc.) from the MinGW shell. 186MinGW will install an "MinGW shell" (you should get a shortcut for it), make sure to perform all opeartions (i.e. generating/running configure script, compiling, etc.) from the MinGW shell.
205 187
206First download the source tarball from http://download.libsodium.org/libsodium/releases/ and build it. 188First download the source tarball from http://download.libsodium.org/libsodium/releases/ and build it.
207Assuming that you got the libsodium-0.4.2.tar.gz release: 189Assuming that you got the libsodium-0.4.2.tar.gz release: