I cannot install OpenCV 2.4.4 in Cent OS 6.3
I have gone here
http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.4.4/
Then did:
wget to the direct link available in there to any location in the server with Cent OS 6.3 installed.
After that I did tar xvz CentOS-2.4.4.tar.gz2
then I did cd OpenCV-2.4.4 and then I did cmake ., make, make install
all logged in as root.
Errors I saw from cmake were pythonlibs cannot be found, yet python 2.7.7 is installed and it seems python 2.6.6 is installed also bundled with Cent OS 6.3 as it shows from cmake that the parser for python is that yet it complains it can't find the pythonlibs.
Asides that I didn't see any other error after cmake.
So I went ahead and did make, waited then did make install
Now I go to the samples directory of OpenCV. cd OpenCV-2.4.4 cd samples cd c
And put the following command in ssh ./myfile.c
which among other things calls a file that comes with opencv, it appear to struggle into finding a file that cannot be found, or a command that can't be found from a broken / wrong install , misconfiguration in the above process / hours of googling to find the answer, etc:
./facedetect.c: line 5: CvHaarClassifierCascade: command not found
./facedetect.c: line 6: CvMemStorage: command not found
./facedetect.c: line 8: syntax error near unexpected token `('
./facedetect.c: line 8: `void detectfaces(IplImage *frame)'
CvHaarClassifierCascade
not found
CvMemStorage
not found
what a problem, my OpenCV isn't working on Cent OS 6.3, I can't get it installed.
Also, I am pretty blind on this installation as there is not a single tutorial that I can find to install OpenCV in Cent OS yet there are many tutorials for Ubuntu, else I wouldn't post to stack.
this is the actual error from cmake, with similar output:
could not find png
could not find
tiff
could not find
jpeg
could not find
jasper
couldn ot find pythonlibs
missing: PYTHON_LIBRARIES PYTHON_INCLUDE_PATH
no module named numpy.distutils
sorry I find the question might be "too localized" - just close it down . thanks
why struggle when there is readymade linux/centos rpm available for opencv? (with some gotchas but for most part it will be just fine)
Related
I'm setting up a new machine and installing sdkman on Cygwin to install Java. I had this exact setup working on my previous machine, also Win 10.
Installed Cygwin, and required for sdkman, installed zip and unzip packages. Now I'm getting the following error:
$ sdk i java 11.0.3-zulu
Downloading: java 11.0.3-zulu
In progress...
Warning: Failed to create the file
Warning: /home/whyph/.sdkman/tmp/D2txrZkztdcZKSIltTtxclUhHkzF9yIf.bin: No such
Warning: file or directory
curl: (23) Failed writing body (0 != 14095)
mv: cannot stat '/home/whyph/.sdkman/tmp/D2txrZkztdcZKSIltTtxclUhHkzF9yIf.bin': No such file or directory
Tried disabling Windows firewall and running Cygwin as administrator, neither changed the error. Worked out of the box on my last machine, but can't figure out what might be different.
I discovered the problem - wrong curl. Turns out, Windows 10 now comes with curl and it's on your path. I assumed it was one of the base packages of Cygwin, but it is not, and the Windows version is not compatible with SDKMAN, even though it worked to install it. Fix:
Remove SDKMAN per https://sdkman.io/install Uninstallation section
Close Cygwin shells
Rerun Cygwin setup and insure the curl, zip, unzip, and tar packages
are installed (check installation instructions in case more
dependencies are added since this writing)
Install SDKMAN per instructions
Recently I had the very same problem, and the reason was very simple... I forgot to install cURL on my Cygwin. Hope it helps!
I had the same problem recently and I manage to make it work somehow.
In the sdkman source file, I modified the .sdkman/src/sdkman-install.sh line 150.
I replaced the "--output" of the line below by a classic redirection ">".
After I just restarted cygwin and the command finally worked.
__sdkman_secure_curl_download "${download_url}" --output "${binary_input}"
Hope that helps !
I tried to install a climate modelling programm (RegCM) for which I used Ubuntu on VMware Workstation, GNU fortran compiler and Open MPI.
Like suggested [https://gforge.ictp.it/gf/download/docmanfileversion/35/758/Install_RegCM4.3.pdf] I installed the GNU fortran compiler, Open MPI, unpacked RegCM Version 4.4.5 and configured RegCM (./configure CC=gcc FC=gfortran).
In 'sudo make' the Error
'Error: Can't open included file 'mpif.h''
appears. In 'RegCM-4.3.5.8/Main/mpplib' which was searched is no file with that name but one can be found in 'openmpi-1.10.2/ompi/include'. Just to give it a try copied 'mpif.h' in the searched directory.
It worked but now a new Error appeared:
'Can't open included file 'mpif-config.h''
which again can be found in 'openmpi-1.10.2/ompi/include'. Again copied the same Error arised with another file.
I also tried a older Version of RegCM (4.3) with the same effect.
Any suggestions on this?
? Which version of Ubuntu are you using ? Like "Ubuntu 16.04 - amd64".
mpif.h, mpif-config.h : sudo apt-get install libopenmpi-dev
Note : RegCM-4.3.5.8 is buggy. No luck with '4.3.5.8' here, any contemporary OS. RegCM-4.5.0 → RegCM-4.5.0.tar.gz
https://gforge.ictp.it/gf/download/frsrelease/252/1580/RegCM-4.5.0.tar.gz builds with no errors : Tested with Ubuntu 16.04 - 64bits and PCLinuxOS2016 -32bits.
I'm a newbie trying to install gearman on windows through cygwin using the tutorial here: http://www.phpvs.net/2010/11/30/installing-gearman-and-gearmand-on-windows-with-cygwin/
I need to install gearman to develop on my windows 7 laptop.
I've installed libevent in my C:\cygwin\libeventInstall directory but when I do a ./configure on gearman it gives me the error: configure: error: Unable to find libevent
I've read that I need to install libevent-devel. I don't know what libevent-devel is and how I go about installing it through cygwin. I've found a bunch of .rpm install files for libevent-devel but I don't think I can install that on windows. I've also found a libevent-devel-2.0.11-1.tar.bz2 but it contains a bunch of header files and no configure file. There doesn't seem to be any documentation on exactly how to install libevent-devel on cygwin.
Been stuck for a few days. Any pointers would be helpful. Thanks!
You need to build LibEvent, it is not included in Cygwin. I haven't tried this, but a google search led to the following instructions:
you need
http://win6.jp/Cygwin/cygwin-1.5.25-15-ipv6-0.22.zip
http://monkey.org/~provos/libevent-1.4.9-stable.tar.gz
unpack cygwin-1.5.25-15-ipv6-0.22.zip into you cygwin folder about this files read site http://win6.jp/Cygwin/
in libevent http.c file add line ---> #define EAI_SYSTEM 11
now install libevent
./configure
make
make install
I also found this SO thread interesting since the Libevent devs were commenting.
Gave up on using cygwin. Tried a reinstalling libevent as per the above and re-running gearman ./configure and the "configure: error: Unable to find libevent" persists.
Took James Butler's advice and am using virtualbox instead. Thanks.
As suggested by Google, I'm trying to get http://jpegclub.org/jpegtran/ working on my Ubuntu server, but I'm getting the error:
"jpegtran: error while loading shared libraries: libjpeg.so.8: cannot open shared object file: No such file or directory"
A Google search told me to install (via apt-get) libjpeg-turbo8, however apt-get can't find the package. My own Ubuntu computer (running 12.0.10) can find the package just fine.
I tried installing http://sourceforge.net/projects/libjpeg-turbo/ with no luck.
Am I doing something wrong or have I missed something? How do I get jpegtran working?
This question may be old, but i was trying to run the glassfish updatetool and it failed because of the lack of the libjpeg library.
Steps i did take:
1. install libjpeg62:i386 (for 64 bit ubuntu amd6)
I hope it helps someone
I 'm trying to run some precompiled code (source code is not available) on Ubuntu, which requires openCV to be installed. I installed the latest version of openCV (from the SVN) yesterday, and installed it according to the debian install guide on the openCV website (cmake -> make -> sudo make install) and everything seemed to go fine.
I tried to run stipdet program but this gives me following error.
bash: ./stipdet: cannot execute binary file
Please can anyone help me with this error?
What does:
file $(which stipdet)
...say? I'm guessing it was built for a CPU you don't have.
You need to run chmod 755 ./stipdet to make stipdet executable.