diff options
author | Sean <sean@tox.im> | 2014-01-25 19:02:47 -0800 |
---|---|---|
committer | Sean <sean@tox.im> | 2014-01-25 19:02:47 -0800 |
commit | 2ead95b56bb11643d6d3edb911e22a52c2fb6b68 (patch) | |
tree | 751d5ffbc04afbed85884a999cb0474c3fc4d1ff /INSTALL.md | |
parent | c766ff95d023b905ad6ded50e57bb89e94627693 (diff) |
made install.md Unix friendly
Diffstat (limited to 'INSTALL.md')
-rw-r--r-- | INSTALL.md | 38 |
1 files changed, 10 insertions, 28 deletions
@@ -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 | ||
16 | Build dependencies: | 16 | Build dependencies: |
17 | 17 | ||
18 | Note: package fetching commands may vary by OS. | ||
19 | |||
20 | On Ubuntu: | ||
21 | |||
18 | ```bash | 22 | ```bash |
19 | sudo 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 | 23 | sudo 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 |
25 | yum groupinstall "Development Tools" | 29 | yum groupinstall "Development Tools" |
26 | yum install libtool autoconf automake libconfig-devel ncurses-devel check check-devel | 30 | yum install libtool autoconf automake libconfig-devel ncurses-devel check check-devel |
27 | ``` | 31 | ``` |
28 | 32 | ||
29 | Note that `libconfig-dev` should be >= 1.4. | 33 | Note that `libconfig-dev` should be >= 1.4. |
30 | 34 | ||
@@ -54,7 +58,7 @@ make check | |||
54 | sudo make install | 58 | sudo make install |
55 | cd .. | 59 | cd .. |
56 | ``` | 60 | ``` |
57 | If 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: | 61 | If 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 | ``` |
59 | echo '/usr/local/lib/' | sudo tee -a /etc/ld.so.conf.d/locallib.conf | 63 | echo '/usr/local/lib/' | sudo tee -a /etc/ld.so.conf.d/locallib.conf |
60 | sudo ldconfig | 64 | sudo ldconfig |
@@ -100,13 +104,6 @@ The following libraries are required along with libsodium and cmake for Mountain | |||
100 | There 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. | 104 | There 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: |
103 | To install from the formula: | ||
104 | ```bash | ||
105 | brew tap Tox/tox | ||
106 | brew install --HEAD libtoxcore | ||
107 | ``` | ||
108 | |||
109 | To do it manually: | ||
110 | ``` | 107 | ``` |
111 | brew install libtool automake autoconf libconfig libsodium check | 108 | brew install libtool automake autoconf libconfig libsodium check |
112 | ``` | 109 | ``` |
@@ -119,21 +116,6 @@ autoreconf -i | |||
119 | make | 116 | make |
120 | make install | 117 | make install |
121 | ``` | 118 | ``` |
122 | |||
123 | If execution fails with errors like "dyld: Library not loaded: /opt/tox-im/lib/libtoxcore.0.dylib", you may need to specify libsodium path: | ||
124 | |||
125 | Determine paths: | ||
126 | ``` | ||
127 | brew list libsodium | ||
128 | ``` | ||
129 | |||
130 | Configure 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/ | ||
133 | make | ||
134 | make install | ||
135 | ``` | ||
136 | |||
137 | Advance configure options: | 119 | Advance 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 | ||
203 | When installing MinGW, make sure to select the MSYS option in the installer. | 185 | When installing MinGW, make sure to select the MSYS option in the installer. |
204 | MinGW 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. | 186 | MinGW 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 | ||
206 | First download the source tarball from http://download.libsodium.org/libsodium/releases/ and build it. | 188 | First download the source tarball from http://download.libsodium.org/libsodium/releases/ and build it. |
207 | Assuming that you got the libsodium-0.4.2.tar.gz release: | 189 | Assuming that you got the libsodium-0.4.2.tar.gz release: |