diff options
-rw-r--r-- | INSTALL.md | 28 |
1 files changed, 25 insertions, 3 deletions
@@ -28,7 +28,7 @@ On Fedora: | |||
28 | ```bash | 28 | ```bash |
29 | yum groupinstall "Development Tools" | 29 | yum groupinstall "Development Tools" |
30 | 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 |
31 | ``` | 31 | ``` |
32 | 32 | ||
33 | Note that `libconfig-dev` should be >= 1.4. | 33 | Note that `libconfig-dev` should be >= 1.4. |
34 | 34 | ||
@@ -58,7 +58,7 @@ make check | |||
58 | sudo make install | 58 | sudo make install |
59 | cd .. | 59 | cd .. |
60 | ``` | 60 | ``` |
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: | 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```. If that doesn't fix it, run: |
62 | ``` | 62 | ``` |
63 | 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 |
64 | sudo ldconfig | 64 | sudo ldconfig |
@@ -104,6 +104,13 @@ The following libraries are required along with libsodium and cmake for Mountain | |||
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. | 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. |
105 | <a name="homebrew" /> | 105 | <a name="homebrew" /> |
106 | ####Homebrew: | 106 | ####Homebrew: |
107 | To install from the formula: | ||
108 | ```bash | ||
109 | brew tap Tox/tox | ||
110 | brew install --HEAD libtoxcore | ||
111 | ``` | ||
112 | |||
113 | To do it manually: | ||
107 | ``` | 114 | ``` |
108 | brew install libtool automake autoconf libconfig libsodium check | 115 | brew install libtool automake autoconf libconfig libsodium check |
109 | ``` | 116 | ``` |
@@ -116,6 +123,21 @@ autoreconf -i | |||
116 | make | 123 | make |
117 | make install | 124 | make install |
118 | ``` | 125 | ``` |
126 | |||
127 | If execution fails with errors like "dyld: Library not loaded: /opt/tox-im/lib/libtoxcore.0.dylib", you may need to specify libsodium path: | ||
128 | |||
129 | Determine paths: | ||
130 | ``` | ||
131 | brew list libsodium | ||
132 | ``` | ||
133 | |||
134 | Configure include and lib folder and build again: | ||
135 | ```bash | ||
136 | ./configure--with-libsodium-headers=/usr/local/Cellar/libsodium/0.4.5/include/ --with-libsodium-libs=/usr/local/Cellar/libsodium/0.4.5/lib/ | ||
137 | make | ||
138 | make install | ||
139 | ``` | ||
140 | |||
119 | Advance configure options: | 141 | Advance configure options: |
120 | - --prefix=/where/to/install | 142 | - --prefix=/where/to/install |
121 | - --with-libsodium-headers=/path/to/libsodium/include/ | 143 | - --with-libsodium-headers=/path/to/libsodium/include/ |
@@ -183,7 +205,7 @@ You should install: | |||
183 | - [MinGW](http://sourceforge.net/projects/mingw/) | 205 | - [MinGW](http://sourceforge.net/projects/mingw/) |
184 | 206 | ||
185 | When installing MinGW, make sure to select the MSYS option in the installer. | 207 | When installing MinGW, make sure to select the MSYS option in the installer. |
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. | 208 | 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. |
187 | 209 | ||
188 | First download the source tarball from http://download.libsodium.org/libsodium/releases/ and build it. | 210 | First download the source tarball from http://download.libsodium.org/libsodium/releases/ and build it. |
189 | Assuming that you got the libsodium-0.4.2.tar.gz release: | 211 | Assuming that you got the libsodium-0.4.2.tar.gz release: |