bash 3rdparty/osx/install_deps.sh? - installation

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.

Related

Unable to install user-wide terminal integration with vcpkg on macOS

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!

Trying to run scala (lexer/parser) project from terminal "command not found"

I'm trying to run my scala lexer/parser program from the terminal but haven't been successful. Please help. I'm very new to commands from the terminal.
I have scala installed. I don't know if I have to set the path for it to work or if I simply wrote the command to run it wrong. I have searched many possibilities but no success. I also checked if there is a problem with sbt, which I think I have also installed.
Gladicitas-MacBook:~ david$ cd Desktop
Gladicitas-MacBook:Desktop david$ cd TestIt
Gladicitas-MacBook:TestIt david$ ls
Files project src
build.sbt scala target
Gladicitas-MacBook:TestIt david$ cd src
Gladicitas-MacBook:src david$ >scala lexer.sc
-bash: lexer.sc: command not found

MINGW64 "make build" error: "bash: make: command not found"

I am working on Windows 10. I want to run a "make build" in MINGW64 but following error comes up:
$ make build
bash: make: command not found
I want to build Glide for Golang
I tried following:
$ sudo yum install build-essential
bash: sudo: command not found
As well as:
$ yum install build-essential
bash: yum: command not found
And:
$ apt-cyg build-essential
bash: apt-cyg: command not found
How can I "work-around" this problem?
Go to ezwinports, https://sourceforge.net/projects/ezwinports/files/
Download make-4.2.1-without-guile-w32-bin.zip (get the version
without guile)
Extract zip
Copy the contents to C:\ProgramFiles\Git\mingw64\ merging the folders, but do NOT overwrite/replace any exisiting files.
You can also use Chocolatey.
Having it installed, just run:
choco install make
When it finishes, it is installed and available in Git for Bash / MinGW.
You have to install mingw-get and after that you can run mingw-get install msys-make to have the command make available.
Here is a link for what you want http://www.mingw.org/wiki/getting_started
We can't use the 'make' command on windows and we don't get it preinstalled with MINGW. So to use it, you need to download it first. The steps are as follows-
Go to https://sourceforge.net/projects/mingw/postdownload and download it.
After the installation is over, go and check if bin folder is present in the directory of MINGW .
If everything works well till now, change the environment variables- go to settings of your laptop and type Environment variables. Go to it's section and click on 'environment variables' at the end.
On the section where 'path' is written, add a new file - the location of the bin file and save.
Install make by typing the following on mingw command line :
mingw-get install mingw32-make
Now make is installed. To use it in command line just write "mingw32-make" in place of "make".
Try using cmake itself.
In the build directory, run:
cmake --build .
Go to downloads of jmeubank.github.io/tdm/gcc : https://jmeubank.github.io/tdm-gcc/download/
Download 64+32-bit MinGW-w64 edition.
Run the .exe file.
Click on Remove if you have tdm-gcc already.
Then Click on Create to install tdm-gcc.
Complete the installation.
Add path to environment variable if not added automatically.
Now run mingw32-make on your terminal / command prompt.
Hope this works
You have to install make first. Run any of the below commands and it will work.
pip install make
OR
conda install make

Sencha CMD Linux command not found

I'm trying to install Sencha-Cmd-6.0.2.14 in xUbuntu.
I downloaded SenchaCmd-6.0.2-linux-amd64.sh.zip and unzipped it to my desktop.
I installed Java by executing sudo apt-get install default-jdk -y.
Then I executed ./SenchaCmd-6.0.2.14-linux-amd64.sh. The installation window appeared and I successfully went through the process.
Upon completion, I typed in sencha at the command prompt but I got a command not found error.
Sencha is probably not in your $PATH, I'm not sure where it installs but probably somewhere in your home directory. Make sure the Sencha install directory is not in your $PATH by issueing the following command in your terminal
echo $PATH
Assuming you use bash and sencha is now your $PATH, add, for example, this to your ~/.bashrc
export PATH=$PATH:~/sencha/cmd/6.0.2.14/bin
You need to find the correct path yourlself. That should do the trick.

problems at installation of sphinx on mac osx - can't even do the ./configure command

I tried to install sphinx on my Mac (OSX 10.6.7) but at the first installation step, I run into a problem.
According to the installation doku, http://sphinxsearch.com/docs/current.html#installation, one should do the following steps
$ ./configure
$ make
$ install
When I enter ./configure in my terminal, I get the following error message:
$ ./configure
> -bash: ./configure: No such file or directory
So I looked in the folder 'sphinx-2.0.1-beta-osx10.6-i386' and saw that there's no such file such as configure. Also
$ ls -a
> . api doc sphinx-min.conf.in
.. bin example.sql sphinx.conf.in
COPYING contrib log
INSTALL data sphinx-min.conf
When I tried other files such as sphinx-min.conf, I get
$ ./sphinx-min.conf
$ -bash: ./sphinx-min.conf: Permission denied
Also the sudo ./sphinx-min.conf doesn't work
$ sudo ./sphinx-min.conf
$ sudo: ./sphinx-min.conf: command not found
Any ideas?
It seems possible that you have downloaded a binary version, rather than the source code. You should check for binaries in the subdirectory bin.
You should also read the file INSTALL, which probably has installation instructions that go with the distribution you have downloaded.
You should download Source tarball (tar.gz) from http://sphinxsearch.com/downloads/release/ even it has the deceptive linux-penguin icon. After decompression the tarball you can follow the installation steps as http://pat.github.com/ts/en/installing_sphinx.html says.

Resources