Ubuntu 14系统中guile-git的安装位置及克隆目录咨询
Hey there! Let's break this down for you regarding guile-git on Ubuntu 14.04:
There's no strict requirement on where you clone the repo—you can pick any directory you have read/write access to, usually somewhere in your user home folder for convenience. Common choices include:
~/src/guile-git: A dedicated source code directory~/projects/guile-git: A general projects folder
For example, you can set this up with these commands:
# Create a source directory if it doesn't exist mkdir -p ~/src cd ~/src # Clone the repository here git clone https://gitlab.com/guile-git/guile-git.git
Cloning just downloads the source code locally—this directory is only for compiling and preparing the software, not the final installed location.
When you compile and install guile-git using the standard ./configure && make && sudo make install workflow, it will place files in system-standard locations by default:
- Shared libraries go to
/usr/local/lib/ - Guile module files are installed to
/usr/local/share/guile/site/(or a version-specific subfolder like/usr/local/share/guile/site/2.0/if you're using Guile 2.0, which is common on Ubuntu 14.04) - Any executable tools will end up in
/usr/local/bin/
If you prefer to install it locally (without affecting the entire system, e.g., for your user only), you can specify a custom prefix during the configure step:
./configure --prefix=$HOME/local make && make install
This will install everything to ~/local/. To use this local installation, you'll need to update your environment variables:
- Add
~/local/binto yourPATH - Add
~/local/libtoLD_LIBRARY_PATH - Set
GUILE_LOAD_PATHto include~/local/share/guile/site/
If you're running into issues cloning the repo, here are some common fixes for Ubuntu 14.04:
- Update Git: Ubuntu 14.04's default Git version is pretty old, which might cause SSL connection issues with GitLab. Try upgrading it:
sudo apt-get update sudo apt-get install --only-upgrade git - Bypass SSL certificate checks (temporary test): If the issue is with SSL certificates, you can try cloning with this flag (note: this is not recommended for long-term use due to security risks):
git clone https://gitlab.com/guile-git/guile-git.git --no-check-certificate - Check permissions: Avoid cloning into system directories (like
/usr/src) unless you usesudo—cloning into your home folder is safer and requires no special permissions. - Network/firewall issues: If your network blocks access to GitLab, check your firewall settings or try accessing the repo URL in a browser first to confirm connectivity.
内容的提问来源于stack exchange,提问作者Michael

