I am trying to execute sudo apt install protobuf-compiler on macOS, but I am not able to install the protobuf-compiler, nor to update the apt.
So far I tried, installing JDK, adding path to ./zshrc and a few other things I searched on Google but no success. The picture below shows the error I get when I try to install protobuf-compiler or update using apt.
What might be the issue? Any answer is appreciated :)
On MacOS, one of the most popular package managers is homebrew, and the command to invoke it is something like brew install <packagename>. For the protobuf package, it would be:
brew install protobuf
Related
I'm trying to install mysql on my Mac using the command
sudo apt install mysql
and it said I needed to install JDK on it. So I installed JDK but am receiving an error saying:
Unable to locate an executable at "/Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/bin/apt" (-1)
I have updated my env path to
JAVA_HOME=/Library/Java/Home
But when I install JDK theres no java file anywhere in my library, even though when I check to see if I have installed it, it is successfully found. I've installed Homebrew but do not know what package to install after the initial installation, or if this is the problem.
Any help would be appreciated.
If you are using Mac it would be much easier to install Homebrew from https://brew.sh and then use $ brew install mysql
see this link for the apt and yum command usage
When I tried to use Meteor-cordova to run an app with android, I get this error:
To add the android platform, please install a JDK. Here are some directions: http://openjdk.java.net/install/
Failed to install android_bundle: Failed to run bash
I already have installed JDK but the error still there. Also I tried to install Android SDK manually, but it doesn't work.
Does someone know why this happened and how to fix it?
On Oracle Linux 6
I had this error after
yum install java-1.7.0-openjdk
solution was to install the development package
yum install java-1.7.0-openjdk-devel
then meteor add-package android worked
you should install jdk to be able to compile cordova apps. On ubuntu or ubuntu based distros you can do that so:
sudo apt-get install openjdk-7-jdk
Trying to install eclipse CDT C/C++ in ubuntu 10.04, gets into some troubles.
While trying to install CDT plugin in eclipse " “.jar has been tampered!” are prompted in Eclipse."
I found this link, which can explain the issue, becuase I have jre7 installed in ubuntu.
so I tried to follow the instruction in this link, which suggest to move back to jre6 instead of jre7
http://www.mkyong.com/google-app-engine/google-plugin-for-eclipse-jar-has-been-tampered/
But in eclipse window->preferences, I just can't find any java option, in the menu. I have totally different options than the one that appear in the above link. I only see General, Help, Install/Update, Run/Debug and Team. Can anyone help me on this issue ?
Thanks
Ran
The CDT Project provides a fully functional C and C++ Integrated Development. For Java development, download the relevant package from https://www.eclipse.org/downloads/
If you want to install eclipse CDT in ubuntu.You can install it by executing following command on command prompt.
Try this
sudo apt-get install eclipse-cdt
Above command works only if you have eclipse previously installed.If this is the first time you want to install eclipse and straight install it with cdt the you do
sudo apt-get install eclipse eclipse-cdt
Netbeans version tried: 7.3 and 7.2.1
OS: Ubuntu 12.04
Java Version: 1.6.0_27
I am getting weird problems using NetBeans. The problem in the title is one out of many, and maybe they are all related.
To resolve this problem, I just like to know if anyone else is encountering the same/similar problem in the environment described. Can anyone provide any resolution to the problem(s)?
Just rollback for jdk packages:
sudo apt-get install openjdk-6-jdk=6b24-1.11.4-3ubuntu1
sudo apt-get install openjdk-6-jre=6b24-1.11.4-3ubuntu1
sudo apt-get install openjdk-6-jre-headless=6b24-1.11.4-3ubuntu1
sudo apt-get install openjdk-6-jre-lib=6b24-1.11.4-3ubuntu1
This was a JDK issue. I resolved my problem by updating to latest JDK.
Maybe not the cause in your case but I found this, having the same issue on Mac OS with Netbeans 8.0.2: https://netbeans.org/bugzilla/show_bug.cgi?id=236101
They say it's a bug in JDK 7u40.
I can confirm that installing JDK 8 fixes this.
I'd recently downloaded a project on SMS sending, but when I tries to compile the code it gives error on line import javax.comm.*;.
Can anybody tell me where to find javax.comm and where to place so that there will be no compilation error.
Oracle Java Communications API Reference - http://www.oracle.com/technetwork/java/index-jsp-141752.html
Official 3.0 Download (Solarix, Linux) - http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-misc-419423.html
Unofficial 2.0 Download (All): http://www.java2s.com/Code/Jar/c/Downloadcomm20jar.htm
Unofficial 2.0 Download (Windows installer) - http://kishor15389.blogspot.hk/2011/05/how-to-install-java-communications.html
In order to ensure there is no compilation error, place the file on your classpath when compiling (-cp command-line option, or check your IDE documentation).
Use RXTX.
On Debian install librxtx-java by typing:
sudo apt-get install librxtx-java
On Fedora or Enterprise Linux install rxtx by typing:
sudo yum install rxtx
you can find Java Communications API 2.0 in below link
http://www.java2s.com/Code/Jar/c/Downloadcomm20jar.htm
Another Simple way i found in Netbeans right click on your project>libraris click add jar/folder add your comm.jar and you done.
if you dont have comm.jar download it from >>> http://llk.media.mit.edu/projects/picdev/software/javaxcomm.zip
On ubuntu
sudo apt-get install librxtx-java then
add RXTX jars to the project which are in
usr/share/java