I'm trying to get Vcpkg user-wide bash integration following the official instructions. here are the steps I took:
git clone https://github.com/Microsoft/vcpkg.git
cd vcpkg
./bootstrap-vcpkg.sh
./vcpkg integrate install
Applied user-wide integration for this vcpkg root.
CMake projects should use: "-DCMAKE_TOOLCHAIN_FILE=/path/to/vcpkg/scripts/buildsystems/vcpkg.cmake"
./vcpkg integrate bash
Unable to read /Users/<user>/.bashrc
touch /Users/<user>/.bashrc
and repeat step 5
Adding vcpkg completion entry to /Users/<user>/.bashrc
mv /Users/<user>/.bashrc /Users/<user>/.bash_profile
However, now when I run vcpkg
or ./vcpkg
in new terminals I get:
-bash: vcpkg: command not found
I would appreciate it if you could help me know what is the problem and how I can resolve it.
My environment is:
- macOS Catalina version 10.15.4
- GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin19)
P.S. I was asked here to show the content of the .bash_profile
is:
source /path/to/vcpkg/scripts/vcpkg_completion.bash