INSTALL.md: some formatting improvements and fixes

Note that Fedora dependencies section still needs to be actually checked by
someone who runs Fedora and would know whether info is right or not.
This commit is contained in:
Zetok Zalbavar 2015-07-12 16:58:49 +01:00
parent 6f5d1a3b8e
commit 7b9142d2bb
No known key found for this signature in database
GPG Key ID: C953D3880212068A

View File

@ -60,7 +60,7 @@ On Fedora:
dnf groupinstall "Development Tools"
dnf install libtool autoconf automake check check-devel
```
Using dnf install @"Development Tools" is also valid and slightly shorter / cleaner way, also @"Rpm Development Tools" would carry the remaining dependencies listed here.
Using ``dnf install @"Development Tools"`` is also valid and slightly shorter / cleaner way. ``@"Rpm Development Tools"`` would carry the remaining dependencies listed here.
On SunOS:
@ -74,7 +74,7 @@ pkg install net-im/tox
```
Note, if you install from ports select NaCl for performance, and sodium if you want it to be portable.
**For A/V support, also install the dependences listed in the [libtoxav] (#libtoxav) section.**
**For A/V support, also install the dependences listed in the [libtoxav](#libtoxav) section.** Note that you have to install those dependencies **before** compiling `toxcore`.
You should get and install [libsodium](https://github.com/jedisct1/libsodium). If you have installed `libsodium` from repo, ommit this step, and jump directly to [compiling toxcore](#compile-toxcore):
```bash
@ -103,12 +103,16 @@ sudo make install
cd ..
```
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:
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:
```bash
echo '/usr/local/lib/' | sudo tee -a /etc/ld.so.conf.d/locallib.conf
sudo ldconfig
```
echo '/usr/local/lib/' | sudo tee -a /etc/ld.so.conf.d/locallibs.conf
OR in the event you have no locallibs.conf file run:
You may run into a situation where there is no ``/etc/ld.so.conf.d`` directory. You could either create it manually, or append path to local library to ``ld.so.conf``:
```bash
echo '/usr/local/lib/' | sudo tee -a /etc/ld.so.conf
sudo ldconfig
```