OpenCV 3.0.0 build error, make: *** [all] Error 2 - opencv

I got this error while building open-CV 3.0.0 on Ubuntu 14.04,
[ 86%] Built target opencv_java
make: *** [all] Error 2

Related

When running rvm install ruby-2.2 an error occurs of make.log posting tail of make.log

I am trying to install ruby-2.2 via rvm as required by minitest in my gemfile.lock but I am experiencing an error as shown in the tail of make.log of ruby-2.2 below.
Tail of make.log:
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.5 (clang-1205.0.22.11)
Target: arm64-apple-darwin20.5.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
compiling compar.c
. ./vm_opts.h
compiling complex.c
compiling dir.c
compiling dln_find.c
compiling enum.c
compiling encoding.c
compiling enumerator.c
compiling error.c
encoding.c:825:2: error: implicit declaration of function 'rb_str_change_terminator_length' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
rb_str_change_terminator_length(obj, oldtermlen, termlen);
^
1 error generated.
make: *** [encoding.o] Error 1
make: *** Waiting for unfinished jobs....
+__rvm_make:0> return 2
When I try to install it via rbenv it says:
dgram_write in libcrypto.a(bss_dgram.o)
_RAND_query_egd_bytes in libcrypto.a(rand_egd.o)
...
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[4]: *** [link_a.darwin] Error 1
make[3]: *** [do_darwin-shared] Error 2
make[2]: *** [libcrypto.1.0.0.dylib] Error 2
make[1]: *** [shared] Error 2
make: *** [build_crypto] Error 1
Do upgrade openssl using:
brew upgrade openssl
but it also required me to remove xcode commandlinetools and then reinstall them
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install

Ruby build failed using rbenv install 2.1.3 Ubuntu 16.04 LTS

I want to install ruby 2.1.3 using this command:
rbenv install 2.1.3
But the result is BUILD FAILED.
I have tried most of the suggestion from Google, but still error. Here is the latest error message:
Last 10 log lines:
make[1]: *** Waiting for unfinished jobs....
compiling psych_to_ruby.c
installing default psych libraries
linking shared-object nkf.so
linking shared-object psych.so
make[2]: Leaving directory '/tmp/ruby-build.20170129014849.4100/ruby-2.1.3/ext/nkf'
make[2]: Leaving directory '/tmp/ruby-build.20170129014849.4100/ruby-2.1.3/ext/psych'
make[1]: Leaving directory '/tmp/ruby-build.20170129014849.4100/ruby-2.1.3'
uncommon.mk:180: recipe for target 'build-ext' failed
make: *** [build-ext] Error 2

Rails - Failed to build native extensions

I'm currently trying to embark on my first rails project and when I try to run the command rails new file_name I eventually get the error ERROR: Failed to build gem native extension.
I am currently using rvm to run ruby 2.2 on my mac osx 10.8.5. Everytime I run rails it seems to fail at the json gem.
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
I am lost as to what is going on. If I try to run install json I also get a failed to build native extension error. Could it be my versions of xcode command line tools because when I try to run xcode-select --install it says command doesn't exist? I don't know. Any help would be appreciated.
edit as per Leonardo's request:
Installing json 1.8.3 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/Users/davidgarczynski/.rvm/rubies/ruby-2.2.1/bin/ruby -r ./siteconf20150817-32366-1n36tmw.rb extconf.rb
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling generator.c
make: I.: No such file or directory
make: [generator.o] Error 1 (ignored)
linking shared-object json/ext/generator.bundle
make: dynamic: No such file or directory
make: [generator.bundle] Error 1 (ignored)
make "DESTDIR=" install
compiling generator.c
make: I.: No such file or directory
make: [generator.o] Error 1 (ignored)
linking shared-object json/ext/generator.bundle
make: dynamic: No such file or directory
make: [generator.bundle] Error 1 (ignored)
/usr/bin/install -m 0755 generator.bundle ./.gem.20150817-32366-b8ng6y/json/ext
install: generator.bundle: No such file or directory
make: *** [install-so] Error 71
make install failed, exit code 2
Gem files will remain installed in /Users/davidgarczynski/.rvm/gems/ruby-2.2.1/gems/json-1.8.3 for inspection.
Results logged to /Users/davidgarczynski/.rvm/gems/ruby-2.2.1/extensions/x86_64-darwin-14/2.2.0-static/json-1.8.3/gem_make.out
An error occurred while installing json (1.8.3), and Bundler cannot continue.
Make sure thatgem install json -v '1.8.3'succeeds before bundling.

OpenCv Install Trouble

I'm try to install openCV on my mac, but after running brew install opencv I get this error:
Devins-MacBook-Air:~ devinwieker$ brew install opencv
==> Installing opencv from homebrew/homebrew-science
==> Installing dependencies for opencv: gcc, readline, sqlite, gdbm, python, eigen, ilmbase,
==> Installing opencv dependency: gcc
==> Downloading http://ftpmirror.gnu.org/gcc/gcc-4.9.2/gcc-4.9.2.tar.bz2
Already downloaded: /Library/Caches/Homebrew/gcc-4.9.2.tar.bz2
==> ../configure --build=x86_64-apple-darwin13.4.0 --prefix=/usr/local/Cellar/gcc/4.9.2_1 --libdir=
==> make bootstrap
make[3]: *** [cc1plus] Error 1
rm gcc.pod
make[2]: *** [all-stage1-gcc] Error 2
make[1]: *** [stage1-bubble] Error 2
make: *** [bootstrap] Error 2
Anyone know what's going on?
I had the same problem I tried using "brew doctor" which you should definitely try, and if that was not helpful try updating Xcode and its developer tools.

brew install fontforge error yosemite

I'm on OS X Yosemite and am trying to install fontforge via brew. When I try to install it I get the following error. I'd like to use fontforge to try fontcustom and grunt-webfont. What does this error mean? Do I need to install something else first?
$ brew install fontforge --with-python
==> Downloading https://github.com/fontforge/fontforge/archive/2.0.20140101.tar.gz
Already downloaded: /Library/Caches/Homebrew/fontforge-2.0.20140101.tar.gz
==> ./autogen.sh
==> ./configure --prefix=/usr/local/Cellar/fontforge/2.0.20140101 --without-cairo
==> make
1 error generated.
make[2]: *** [libgdraw_la-gmatrixedit.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
I had exactly the same problem and reinstalling 10.10 XCode Command Line Tools solved it!
:-)
Good luck -

Resources