Installing Infisical on FreeBSD
At Conrad Research, we deploy on FreeBSD and use Infisical as a security store. At the time of this article, there isn't a FreeBSD port available for Infisical. So this guide will walk you through how to install Infisical CLI on FreeBSD.
Steps
1. Make sure git is installed and working.
pkg install git
git --version
If you get an error about missing shared libraries when running 'git', you can see which ones using the below command.
ldd $(which git)
Odds are you'll find you're user just isn't loading libraries from '/usr/local/lib'. To fix this, you can add the following line to your '~/.profile' file and source it.
echo 'export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH' >> ~/.profile
. ~/.profile
Now when you run 'ldd $(which git)', you should see no errors.
2. Retrieve the source.
Clone the Infisical CLI repository from GitHub. Find the latest release tag on the Infisical GitHub releases page.
git clone --branch v0.43.12 https://github.com/Infisical/cli.git
cd cli
Build the Infisical CLI binary.
go build -o infisical .
Install the binary system-wide (optional, for global access).
mv infisical /usr/local/bin/
Verify the installation.
infisical -v
3. Log into Infisical.
infisical login
4. Inject the secrets into your application.
infisical run -- YourBinary &
You're now ready to enjoy Infisical on your FreeBSD server! Cheers 🥂