Asking for the OpenBLAS installation - openblas

I was going to install the OpenBLAS on Mac OS but seems failed at the end.
First I downloaded the source and extracted that and then input the 'make' commands on terminal. However, I cannot run 'make install' after it, where it shows
make: *** No rule to make target `install'. Stop.
. The OpenBLAS installation seems not finished. What should I do? Thanks.

Related

How to install a new Ruby version on Mac OS [duplicate]

I know there are a few silimar issues to this one, but I cannot find one that matches my issue.
I cannot install any version of ruby with either rvm nor rbenv. Both result in the same error. For example, here's an extract for the logs when installing ruby 2.5.3:
compiling loadpath.c
making srcs under enc
linking static-library libruby.2.5.3-static.a
make[1]: Nothing to be done for `srcs'.
generating transdb.h
/opt/local/bin/ranlib: object: libruby.2.5.3-static.a(dln.o) malformed object (unknown load command 1)
ar: internal ranlib command failed
make: *** [libruby.2.5.3-static.a] Error 1
make: *** Waiting for unfinished jobs....
transdb.h updated
The issue seems to be here:
/opt/local/bin/ranlib: object: libruby.2.5.3-static.a(dln.o) malformed object (unknown load command 1)
ar: internal ranlib command failed
make: *** [libruby.2.5.3-static.a] Error 1
What I've tried
Installing, reinstalling, uninstalling rvm, rbenv.
Updating, reinstalling XCode.
Deleting, installing, XCode command line tools.
What is causing this?
Update
gcc --version returns:
gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1
Apple LLVM version 10.0.0 (clang-1000.10.44.4)
Target: x86_64-apple-darwin18.0.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
For anyone else who steps on the same landmine, for me it was that there was an incompatible copy of ranlib from homebrew via the cctools package. To fix it, I just uninstalled it:
brew uninstall cctools
For those who find this and aren't helped by the above solution...
I ran into this issue as well. In my case it was due to MacPorts being outdated after I upgraded to (MacOS) Mojave.
I followed the steps listed on MacPorts' migration guide here:
https://trac.macports.org/wiki/Migration
Closed and reopened Terminal (just b/c)
ran rvm install ruby and got Install of ruby-2.6.0 - #complete, hooray!
So, I think the fix to this was running:
$ sudo xcodebuild -runFirstLaunch
Why? I'm not sure. My suspicion is I tried to build ruby before updating XCode. But once I had updated XCode I suspect the wrong/older command line tool was still being referenced somehow.
I don't know exactly what fixed this but I completely deleted XCode and ruby still didn't install.
Then I completely deleted command line tools and ruby still didn't install.
Then I reinstalled just the command line tools without XCode and ruby still didn't install.
Then I ran this runFirstLaunch command and ruby installed.

Make install fails macOS Catalina

I am trying to install OpenCV to use in C++ on my macOS Catalina using the tutorial here: https://www.learnopencv.com/install-opencv-4-on-macos/ . However, near the end when I have to run make install
I get an error saying
Install the project...
-- Install configuration: "RELEASE"
CMake Error at cmake_install.cmake:36 (file):
file cannot create directory: /installation/OpenCV-/share/licenses/opencv4.
Maybe need administrative privileges.
make: *** [install] Error 1
I tried running as root with:
sudo make install
However I get the same error.
I also tried changing the CMAKE_INSTALL_PREFIX to another folder I created which I was the owner of, however this did not work either.
What could I do to make the installation successful?
Thank you.

Cannot install any version of ruby on Mojave - internal ranlib command failed

I know there are a few silimar issues to this one, but I cannot find one that matches my issue.
I cannot install any version of ruby with either rvm nor rbenv. Both result in the same error. For example, here's an extract for the logs when installing ruby 2.5.3:
compiling loadpath.c
making srcs under enc
linking static-library libruby.2.5.3-static.a
make[1]: Nothing to be done for `srcs'.
generating transdb.h
/opt/local/bin/ranlib: object: libruby.2.5.3-static.a(dln.o) malformed object (unknown load command 1)
ar: internal ranlib command failed
make: *** [libruby.2.5.3-static.a] Error 1
make: *** Waiting for unfinished jobs....
transdb.h updated
The issue seems to be here:
/opt/local/bin/ranlib: object: libruby.2.5.3-static.a(dln.o) malformed object (unknown load command 1)
ar: internal ranlib command failed
make: *** [libruby.2.5.3-static.a] Error 1
What I've tried
Installing, reinstalling, uninstalling rvm, rbenv.
Updating, reinstalling XCode.
Deleting, installing, XCode command line tools.
What is causing this?
Update
gcc --version returns:
gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1
Apple LLVM version 10.0.0 (clang-1000.10.44.4)
Target: x86_64-apple-darwin18.0.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
For anyone else who steps on the same landmine, for me it was that there was an incompatible copy of ranlib from homebrew via the cctools package. To fix it, I just uninstalled it:
brew uninstall cctools
For those who find this and aren't helped by the above solution...
I ran into this issue as well. In my case it was due to MacPorts being outdated after I upgraded to (MacOS) Mojave.
I followed the steps listed on MacPorts' migration guide here:
https://trac.macports.org/wiki/Migration
Closed and reopened Terminal (just b/c)
ran rvm install ruby and got Install of ruby-2.6.0 - #complete, hooray!
So, I think the fix to this was running:
$ sudo xcodebuild -runFirstLaunch
Why? I'm not sure. My suspicion is I tried to build ruby before updating XCode. But once I had updated XCode I suspect the wrong/older command line tool was still being referenced somehow.
I don't know exactly what fixed this but I completely deleted XCode and ruby still didn't install.
Then I completely deleted command line tools and ruby still didn't install.
Then I reinstalled just the command line tools without XCode and ruby still didn't install.
Then I ran this runFirstLaunch command and ruby installed.

XCode mvn: No such file or directory

I have installed Maven on my Mac OSX Yosemite, maven -version on terminal displays the version. Initially I tried with brew even that was successful but it did not resolve the issue in XCode.
I am new to Mac OSX as well as XCode, so please step by step guide is much appreciated. I am not sure if any plugin is required to build the project
Building j2objc annotations
mvn generate-resources dependency:sources
make[1]: mvn: No such file or directory
make[1]: *** [/Users/salmansiddiqui/Documents/xcode/j2objc-0.9.4/java_deps/build_result/.maven_generate] Error 1
make: *** [java_deps_dist] Error 2
make: *** Waiting for unfinished jobs....
Wherever brew put the mvn executable, that path needs to be added to your PATH environment variable. Here is a StackOverflow answer that should help: How to modify PATH for Homebrew?. You'll probably need to log out and back in for the new path to be included. To verify your paths are set up correctly, in a Terminal window run "mvn -v", which displays the version and installation information. The j2objc build should work once "mvn -v" works.

Compiling Unix Version 6 in Snow Leopard

Hi i downloaded souce for unix version 6, i want to study it and test it. I am running Snow Leopard on a macbook pro.
1)Is there a way to compile it in mac. If i comile using make or gmake i am getting the following error.
*** Error: Couldn't find an i386-*-elf version of GCC/binutils.
*** Is the directory with i386-jos-elf-gcc in your PATH?
*** If your i386-*-elf toolchain is installed with a command
*** prefix other than 'i386-jos-elf-', set your GCCPREFIX
*** environment variable to that prefix and run 'make' again.
*** To turn off this error, run 'gmake GCCPREFIX= ...'.
2)I also want to run it in a virtual machine,I have VMWare installed on my machine. I don't know how to do that.
Download tarballs for gcc and binutils, expand them, then:
$ cd binutils-2.15
$ ./configure --target=i386-jos-elf
$ make
$ make install
$ cd ../gcc-3.4.1
$ ./configure --target=i386-jos-elf
$ make
$ make install
You will of course need to update the paths. (I got these instructions from MIT's OpenCourseWare.)
You'll have to go through the process of creating a new virtual machine and formatting and installing the OS onto its disk. I've used VirtualBox with some success, but I have no experience with VMWare; you're on your own there.
You might look into macports.org. It has several packages that look useful, notably "i386-elf-binutils". It installs into /opt/local/*, so you may need to make sure /opt/local/bin/ is in your path. (Although I believe it takes care of that by default.)
EDIT: Or maybe not. After a little more research, I wonder if these instructions and downloads are what you're looking for.
EDIT again: Corrected the download link. Sorry about that!
The build system you are using seems to require an ELF tool chain (used by Linux).
You could try to figure out if that can be changed, but since you have VMWare, try to compile it under a virtualized Linux (minimal Debian is quite light-weight).
As an alternative you may compile bournesh on Mac OS X.
http://freshmeat.net/projects/bournesh/

Resources