We downloaded the Guile source code and compile it by running:
./configure
make
sudo make install
rehash
Then, when we call guile, it says:
guile: error while loading shared libraries: libguile-3.0.so.1: cannot open shared object file: No such file or directory
After compiling, make sure libguile-3.0.so.1 is available in the installed directory, usually in /usr/local.
Then go to /etc/ld.so.conf.d, create new file for example guile.conf and add this line:
/usr/local/lib64
Then run command:
sudo ldconfig
Now, we can run guile executable file.