#### I get an error: `error while loading shared libraries: libraylib.so.351: cannot open shared object file: No such file or directory` after rebooting. Right after building the library it worked fine.
#### I get an error: `error while loading shared libraries: libraylib.so.351: cannot open shared object file: No such file or directory` after rebooting. Right after building the library it worked fine.
If you install raylib with `RAYLIB_LIBTYPE=SHARED` you may find that compiler is unable to locate library file. That is because raylib wasn't installed to stander system library directories. You can check in which directory raylib was installed by looking at the `make install` output:
If you install raylib with `RAYLIB_LIBTYPE=SHARED` you may find that compiler is unable to locate library file. That is because raylib wasn't installed to standard system library directories. You can check in which directory raylib was installed by looking at the `make install` output:
In this case raylib was installed to `/usr/local/lib`, but it can be that raylib gets installed into `/usr/local/lib64` or some other directory. You should check the output yourself and make sure, that missing files are located in that directory.
In this case raylib was installed to `/usr/local/lib`, but it can be that raylib gets installed into `/usr/local/lib64` or some other directory. You should check the output yourself and make sure, that missing files are located in that directory.
Next all you need to do is either specify that install path in the makefile or set an enviroment variable. You can set an enviroment variable by typing:
Next all you need to do is either specify that install path in the makefile or set an environment variable. You can set an environment variable by typing:
`export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib` (replace `/usr/local/lib` with your install path)
`export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib` (replace `/usr/local/lib` with your install path)