I am trying to install the GNU scientific library using homebrew on OSX (version 10.9.5) following this link:
$ brew install caskroom/cask/brew-cask
$ brew cask install cuda java
$ brew install clang-omp swig bazel cmake libusb maven nasm yasm xz pkg-config
When I type brew cask install cuda java I get the following error message:
Error: Cask 'cuda' definition is invalid: Bad header line: parse failed
What does this mean, and how do I resolve this? If there is another way to get GSL on Java that would also be helpful.
That formula doesn't seem to exist.
You can look on https://github.com/caskroom/homebrew-cask/tree/master/Casks yourself to see a list of formula offered. There is a cuda and cuda-z formula shown, but no cuda java.
If you want to make absolutely sure you are not missing something, try:
brew search cuda java
Related
I am trying to install Java 8 with OpenJDK in an M1 Macbook terminal and it gives the following error. Command that I used was brew install openjdk#8
Error: openjdk#8: no bottle available!
You can try to install from source with:
brew install --build-from-source openjdk#8
Please note building from source is unsupported. You will encounter build
failures with some formulae. If you experience any issues please create pull
requests instead of asking for help on Homebrew's GitHub, Twitter or any other
official channels.
At the moment, there is no version of openjdk#8 that supports M1 x64 bit chips in Macbooks. But, there is an alternative and it could be installed using this website : https://adoptium.net/temurin/releases/?version=8
Good morning guys,
trying to install the Pygame library on my MacBook Pro...
I encountered some issues that I'm sure you're able to help me with!
First of all I installed the last Python version (3.7.4)
Than I tried to install via pip the Pygame library, but the process
was unsuccessful due to the lack of a Java JKD 13.
I downloaded and installed the last JDK 13 version (Jdk-13_osx-x64)
and this process appeared to be successful.
Trying again to finally install the Pygame library an error occurred:
Unable to locate an executable at "/Library/Java/JavaVirtualMachines/jdk-13.jdk/Contents/Home/bin/apt
Can anyone of you guys help me???
Thanks prior!
For Python and Java developers using macOS, I personally recommend installing Python and Java through HomeBrew.
Before you can start your journey as a software developer, you should install Xcode and xcode-select first which is mandatory.
You can install Xcode from Mac AppStore and xcode-select through the following command:
xcode-select --install
After installing the prerequisites, you can install HomeBrew via:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Which is referenced from here
After you've installed HomeBrew you can install Python3 and AdoptopenJDK via the following command:
brew install python3
brew cask install adoptopenjdk
AdoptopenJDK is an open source JDK recommended by myself other than Oracle JDK.
Apt used to be a command coming with the Java Development Kit around Java 6.
Java 6 is also the latest 32-bit version provided by Apple but that doesn’t run on the newest version of Mac OS.
I think you should look for a newer version of pygame compatible with your system.
I'm having some trouble installing maven on my machine via homebrew. THis is what I get when trying to install maven:
❯ brew install maven
[16:27:20]
maven: Java 1.7+ is required to install this formula.
JavaRequirement unsatisfied!
You can install with Homebrew-Cask:
brew cask install java
You can download from:
https://www.oracle.com/technetwork/java/javase/downloads/index.html
Error: An unsatisfied requirement failed this build.
I have already installed java via homebrew on this machine. Here's an output of my homebrew config:
❯ brew config [16:30:37]
HOMEBREW_VERSION: 1.3.5-28-gc4e8c79
ORIGIN: https://github.com/Homebrew/brew
HEAD: c4e8c7906d12399b34188cd3395b8f9d30dc89b3
Last commit: 75 minutes ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: ebaf0a5b91c45b9ff3b99dfc5b7955a420cafb5f
Core tap last commit: 8 minutes ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local/Homebrew
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
CPU: octa-core 64-bit skylake
Homebrew Ruby: 2.3.3 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/bin/ruby
Clang: 9.0 build 900
Git: 2.14.2 => /usr/local/bin/git
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
Java: 9.0.1
macOS: 10.12.6-x86_64
Xcode: N/A
CLT: 9.0.1.0.1.1506734476
X11: N/A
And I've confirmed that java does indeed work (i.e. compiled / run a file).
Any thoughts on what I can do? I looked around google, but none of the other links I found seemed to have what I needed.
Thank you!
-parth
EDIT: I actually found a fix for my issue here https://github.com/Homebrew/homebrew-core/issues/19459, the gist of which is to do:
brew cask install caskroom/versions/java8
instead of just
brew cask install java
But, i'm going to leave this open since I'm not really quite sure why it worked.
I am looking to install Java on Mac using Homebrew. This works fine using the command
brew cask install java.This installs the latest stable version which is currently - 1.8.0_141
However how can I install a specific version for example 1.8.0_131.
Install homebrew
/usr/bin/ruby -e "$(curl -fsSL
https://raw.githubusercontent.com/Homebrew/install/master/install)"
Update homebrew if already installed:
brew update
allow brew to lookup versions
brew tap homebrew/cask-versions
list available java versions
brew search java
Optional: to find out the minor version of java
brew info --cask java8
install java 8 (or any other version available)
brew install --cask java8
Raising Sean Breckenridge's comment as an answer to increase visibility:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew tap homebrew/cask-versions
brew cask install homebrew/cask-versions/adoptopenjdk8
There is no longer cask named "java8".
run brew update command make sure that brew is update to date.
then check brew by following command... to make sure brew works fine
brew doctor
if its has any issue you have to fix that first ...
Then if you want to install specific version run following command ..
brew install java11
in my case it's java11 you can check java available version on java website.
Then go for location
/Library/Java/JavaVirtualMachines/openjdk-11.jdk
and make sure jdk file is there...
if there is not any folder just run the following command in terminal...
sudo ln -sfn /usr/local/opt/openjdk#11/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-11.jdk
change the version after #11 according to your required jdk version. its gonna tell system about java runtime.
you can check java version by following command.
java --version
I need to install octave with java 8 support, via homebrew, on OS X 10.12.2. I did brew install octave --with-docs, and it seemed to compile normally. I can start octave, but it lacks java support, which I need. From the octave console:
>> javaMethod('getProperty','java.lang.System','java.version')
error: javaMethod: support for Java was unavailable or disabled when Octave was built
>> octave_config_info ("features").JAVA
ans = 0
The only warning during the brew install was:
==> make install
Warning: homebrew/science/octave dependency gcc was built with a different C++ standard
library (libstdc++ from clang). This may cause problems at runtime.
I have previously installed: xcode and command line tools; brew update && brew upgrade; brew install gcc; brew install Caskroom/cask/java (and then command line java -version returns: "1.8.0_112"); and command line /usr/libexec/java_home returns: /Library/Java/JavaVirtualMachines/jdk1.8.0_112.jdk/Contents/Home
The only info that google finds is about how to compile withOUT java. The default is to compile with java, so I am suspecting that brew is not aware of the java 1.8 that is installed (despite it being installed by brew earlier today, and accessible by command line, and via /usr/libexec/java_home).
Apparently the process changed recently and the wider documentation has not caught up (that I could find).
Solution: You now need to brew install octave --with-java to get java support.
Now in octave I get:
>> javaMethod('getProperty','java.lang.System','java.version')
ans = 1.8.0_112