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
A temporary solution was to add the line:
export PATH=/path/to/vcpkg:$PATH
to the .bash_profile. Wonder why the above installation/integration scripts don't do this automatically!
Related
I am trying to follow these installation instructions:
https://www.thomasvanhoey.com/post/installing-openpose-on-mac-october-2020-version/
for installing OpenPose on Mac.
I have a Mac M1, running Big Sir. When I try to do step 3, and run this in terminal: (I'm in the openpose folder that was created when I installed CMake, where there is a 3rdparty folder)
bash 3rdparty/osx/install_deps.sh
I get:
No such file or directory
also step 4 doesn't work, i run this in the command line in terminal:
~~protoc src/caffe/proto/caffe.proto --cpp_out=. mkdir include/caffe/proto mv src/caffe/proto/caffe.pb.h include/caffe/proto~~
I get
zsh: command not found: ~~protoc
Does anyone know why I am getting these errors? I "Cloned the repository in the target folder". I "Install CMake GUI" the old fashioned way. I ran and it installed.
brew install caffe
Thnx
Replace with: bash scripts/osx/install_deps.sh
The file to be executed is install_deps.sh. When I perform $ find . -name osx it is found in openpose/scripts/. So just run bash scripts/osx/install_deps.sh.
On linux there's no problem but I want to compile my code on windows. I follow the instructions exactly. Specifically, I open a command prompt and run the following in the same directory I cloned the emscripten git repo in to.
git pull
emsdk install latest
emsdk activate latest
emsdk_env.bat
There is suspiciously no output and emcc cannot be found. What could I be doing wrong here?
If you go to the command line and type python --version the version of python installed should come up.
If it doesn't, go to the directory in which python is installed and add this to your PATH.
Restart the command prompt and try python --version again. If you get the version of python, follow the steps you mentioned.
You should get some output.
Let me know if the problem still has not been resolved.
You need to install Python 2.7.12 or newer.
https://emscripten.org/docs/getting_started/downloads.html#windows
I am installing .net core on a mac and hoping to play around with it a bit on vs code. I am following the steps from
https://www.microsoft.com/net/core#macosx.
However, when I run
dotnet new
I get command not found on bash.
I have followed these previous steps
brew update
brew install openssl
brew link --force openssl
I have also downloaded the core package (installed successfully). I do not see any other steps. Wondering if I am missing a step or how to identify what is missing?
Sometimes I am not sure why the installer doesn't add the PATH to your environment.
Run below in terminal and reopen the terminal:
echo 'export PATH="$PATH:/usr/local/share/dotnet"' >> ~/.bashrc
(Note: If you are using zsh or other shells, please change the above ~/.bashrc to the initialize script of your shell, e.g. ~/.zshrc)
I ran into this same problem earlier today. The fix for me was to close out all Terminal windows, open a new one, then re-run the command.
I am trying to install Gflags which inturn requires Cmake 2.8.12 or above. I currently have Cmake 2.8.11 and i tried to install the latest version. Installation went thru without any problem, but when I run cmake -version, i still see the older version. I have tried rebooting my machine.
Hardware : MAC 10.9
looks like a newer version of binary cmake placed in the $PATH after the old one or not in the $PATH at all. To check what verstion takes precedence try in bash command prompt:
$ which cmake
to see other versions:
$ whereis cmake
fix your PATH accordingly (in system-wide profile or your personal ~/.bashrc) and reload bash by exec bash or close and reopen terminal window.
Anyway, you always may execute cmake by full (absolute) path:
$ cd your-project-src
$ mkdir build
$ cd build
$ /full/path/to/cmake ..
I have two problems:
Git is not working although it is installed. Mavericks pops up a window and suggests to install Xcode (I don't want to): "The 'git' command requires the command line developer tools. Would you like to install it now?"
Sometimes even basic commands such as "ls" don't work. "-bash: ls: command not found". However, after inserting the command " . /etc/profile" it works for a while.
My ~/.bash_profile:
export PATH=/usr/local/git/bin:$PATH
export PATH=/usr/local/mongodb/bin
### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"
I'm very new to this. Please be aware while helping out.;) Your help is highly appreciated.
Amir
You are overwriting your PATH in this line:
export PATH=/usr/local/mongodb/bin
it should be:
export PATH=/usr/local/mongodb/bin:$PATH
Then if you are using OSX I strongly suggest that you use Homebrew http://brew.sh/ which is a package manager (like linux) for mac.
If you are developing on Mac, the command line tools are (almost) required for C/C++/ObjC dev. You can download them without XCode but it is not recommended. Homebrew will need them to build the software for your platform.
To download them go to https://developer.apple.com/downloads/index.action
Note, you'll need a developer account (it is free)
Once you have installed homebrew it is easy to have access to the latest software e.g:
brew install git
brew install mongodb
etc.
You don't have to manage and download the packages by hand. Very handy !
export PATH=/usr/local/git/bin:$PATH
export PATH=/usr/local/mongodb/bin
That second export overwrites PATH completely and sets it to the mongodb directory only. You need to append (or prepend) to PATH, not overwrite it.
export PATH="/usr/local/git/bin:$PATH"
export PATH="/usr/local/mongodb/bin:$PATH"
...