I installed OpenCV this way
#After downloading OpenCV-3.0, in the directory:
echo "#define GTEST_USE_OWN_TR1_TUPLE 1" | cat > temp1
cat modules/ts/include/opencv2/ts/ts_gtest.h > temp2
cat temp1 temp2 > modules/ts/include/opencv2/ts/ts_gtest.h
mkdir build
cd build
cmake .. -Wno-dev
make -j8 && sudo make install
#Update your bash_profile:
~$ echo "export PYTHONPATH=/usr/local/lib/python2.7/site-packages/:$PYTHONPATH" >>
~/.bash_profile
#Close and open the Terminal
#Open python console and try to import cv2 to test if everything works
~$ python import cv2
The version is not stable and making errors I want to uninstall it to avoid problem when I install opencv using brew, should I just delete the folder ?
THis what I get when i did
cd build
make uninstall
-- Uninstalling "/usr/local/share/OpenCV/3rdparty/lib/libippicv.a"
CMake Error at cmake_uninstall.cmake:20 (MESSAGE):
Problem when removing "/usr/local/share/OpenCV/3rdparty/lib/libippicv.a"
make[3]: *** [CMakeFiles/uninstall] Error 1
make[2]: *** [CMakeFiles/uninstall.dir/all] Error 2
make[1]: *** [CMakeFiles/uninstall.dir/rule] Error 2
make: *** [uninstall] Error 2
If you used Homebrew to install you can use this command.
brew uninstall opencv3
You will not have to remove any directory such as /usr/local/Cellar/opencv3
Go to the build directory and run sudo make uninstall
Delete that line you added to ~/.bashrc
Remove the opencv directory
Related
I am trying to use Homebrew on Linux (Ubuntu 20.04) to install Swift Mint. I have installed swiftenv using Homebrew, and swift using swiftenv. In my .profile, I have included
export SWIFTENV_ROOT=/home/linuxbrew/.swiftenv
if which swiftenv > /dev/null; then eval "$(swiftenv init -)"; fi
to put swift in my PATH. Running echo $PATH gives
/home/linuxbrew/.swiftenv/shims:/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:/home/me/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
and which swift yields /home/linuxbrew/.swiftenv/shims/swift.
However, running brew install mint errors with
swift build --disable-sandbox -c release --arch arm64 --arch x86_64
make: swift: Command not found
make: *** [Makefile:18: build] Error 127
READ THIS: https://docs.brew.sh/Troubleshooting
To explore, I obtain a debug shell after the error with brew install --debug mint
In the debug shell, running echo $PATH gives
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/linux/super:/usr/bin:/bin:/usr/sbin:/sbin
and which swift turns up nothing.
What am I supposed to do to pass /home/linuxbrew/.swiftenv/shims into brew so that this package can build?
Ideally, the solution would allow me to run (the swiftenv part of) my .profile before building the formula so that I can avoid the possible fragility of swiftenv moving its shims directory.
I'm trying to build grpc from source on Windows 2012 Server edition. I downloaded and installed Python 3.5 from the Python website and installed the entire MinGW package as well as git along with git bash. Following the instructions for building from source:
$ git clone https://github.com/grpc/grpc.git
$ cd grpc
$ git submodule update --init
$ make
$ [sudo] make install
I get the aforementioned error after executing make. Here's the shell output for your perusal.
PS C:\Users\thunderboltsid\grpc> make
[MAKE] Generating /c/Users/thunderboltsid/grpc/libs/opt/pkgconfig/grpc.pc
[MAKE] Generating /c/Users/thunderboltsid/grpc/libs/opt/pkgconfig/grpc_unsecure.pc
[MAKE] Generating cache.mk
[C] Compiling third_party/zlib/adler32.c
make.exe": no_c_compiler: Command not found
make.exe": *** [/c/Users/thunderboltsid/grpc/objs/opt/third_party/zlib/adler32.o] Error 127
I really can't understand what is this error supposed to be. Tried googling but that didn't help. Any input will be appreciated.
you may need run apt-get install which
install build-base in your system, example:
apt-get install build-base
You may simply have no C compiler installed, not even gcc. If that's the reason then installing gcc resolves the issue:
apt get install gcc
i am facing compile Theos project on mac terminal. i am used OSX10.8.5
i have done all work for create Theos jailbroken Project
Install the latest Ios7.1 Sdk
Setting Up The Environment Variables.
$ export THEOS=/opt/theos
$ echo $THEOS
3.Getting theos
$ svn co http://svn.howett.net/svn/theos/trunk $THEOS
4.Getting ldi
$ sudo curl -s http://dl.dropbox.com/u/3157793/ldid > ~/Desktop/ldid
$ chmod +x ~/Desktop/ldid
$ sudo mv ~/Desktop/ldid $THEOS/bin/ldid
5.Install dpkg (Mac Port)
$ sudo port install dpkg
Creating A New Project
$ sudo THEOS/bin/nic.pl
set environment
$ export THEOS=/opt/theos/
$ export SDKVERSION=7.1
$ export THEOS_DEVICE_IP=192.168.1.151
Compile project
$ make
when i compile the theos project then mac terminal through error.
Making all for application fooProject...
mkdir: obj: Permission denied
make[1]: *** [obj] Error 1
make: *** [fooProject.all.application.variables] Error 2
please suggest to me. where am i wrong. i am new on theos so i trouble for solve this problem last 2 days.
Thank you
I made a proper answer because it is more visible than just a single comment.
I just reprocuded the error by creating a project using your commands.You need to create your project without using sudo (just type THEOS/bin/nic.pl), and then you'll be allowed to compile it with make, otherwise it will throw a Permission Denied as the files will be owned by the System Administrator.
i am getting the following error while running "make" command.
cd /home/bismillah/Desktop/omnetpp-4.1/out/gcc-release/src/utils && /home/bismillah/Desktop/omnetpp-4.1/src/utils/install-prog opp_lcg32_seedtool /home/bismillah/Desktop/omnetpp-4.1/bin
/bin/sh: /home/bismillah/Desktop/omnetpp-4.1/src/utils/install-prog: Permission denied
make[1]: * [all] Error 126
make[1]: Leaving directory `/home/bismillah/Desktop/omnetpp-4.1/src/utils'
make: * [utils] Error 2
The configure command worked properly,, kindly help;
The mentioned install-prog script should have an executable flag set on linux.
i.e. use
$ chmod +x install-prog
on it, but usually that should be set automatically once you extract the archive using
$ tar xvfz omnetdistro-vertsion.tgz
Probably you have extracted the Widnows version with unzip. I would try a reainsall and following closely the INSTALL guide.
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.