I am using Ubuntu-14.04,maven-3.2.3,mahout-0.9,hadoop-2.2.0. I am new to maven. I have tried to run mahout on hadoop. That time i got en error like unable to find hadoop-core-2.2.0 for mahout-core-0.9. So I searched and found a key as that i need to mentioned mahout classpath that relate to hadoop. So i changed path of mahout by using "export" in open terminal(Not inside any of .bashrc or /etc/profile like). From that i cant run mahout and maven.I cant found the environment path which i changed. I tried the following,
mansoor#mansoor:~$ mvn --version
The program 'mvn' can be found in the following packages:
* maven
* maven2
Try: sudo apt-get install <selected package>
So i tried with both the things
mansoor#mansoor$ sudo apt-get install maven ( maven2)
if i tried to install newly , i got the following,
mansoor#mansoor:~$ mvn -v
Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher
Caused by: java.lang.ClassNotFoundException: org.codehaus.classworlds.Launcher
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: org.codehaus.classworlds.Launcher. Program will exit.
I removed both maven's and i tried
$ mvn -v / and with (--version)
again i got the same error like following,
The program 'mvn' can be found in the following packages:
* maven
* maven2
Try: sudo apt-get install <selected package>
I tried new installation after used
sudo apt-get remove maven(maven2)
with maven packages which is downloaded from Apache site.
That time also i got the same error.
I checked all path and environment variables that i know like bellow,
mansoor#mansoor:~$ which mvn
mansoor#mansoor:~$ which maven
mansoor#mansoor:~$ which maven2
mansoor#mansoor:~$ whereis mvn
mvn:
mansoor#mansoor:~$ whereis maven
maven:
mansoor#mansoor:~$ whereis maven2
maven2:
mansoor#mansoor:~$ sudo gedit ~/.bashrc
==> Here there is no maven variable mentioned
mansoor#mansoor:~$ sudo gedit ~/.bash_profile
mansoor#mansoor:~$ sudo gedit /etc/profile
/usr/bin$ ls
==> here also no maven
/usr/share$ ls
==> here also no maven
Everything was empty that mean there is no maven. I dont know how to clean maven completely and reinstall it newly.
Can anyone help me to resolve this?
Related
I can't install RStudio in Ubuntu 19.04, it gives me the following error in the terminal, I really appreciate the guidance you can give me, thanks
$ sudo dpkg -i rstudio-1.2.5042-amd64.deb
(Reading database ... 302725 files and directories currently installed.)
Preparing to unpack rstudio-1.2.5042-amd64.deb ...
Unpacking rstudio (1.2.5042) over (1.2.5042) ...
dpkg: dependency problems prevent configuration of rstudio:
rstudio depends on libclang-dev; however:
Package libclang-dev is not installed.
dpkg: error processing package rstudio (--install):
dependency problems - leaving unconfigured
Processing triggers for gnome-menus (3.32.0-1ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-4ubuntu1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for shared-mime-info (1.10-1) ...
Errors were encountered while processing:
rstudio
libclang-dev depends of libclang-8-dev -> libobjc-8-dev -> libobjc4-dev
Try sudo apt-get install gdebi-core and then sudo gdebi rstudio-1.2.5042-amd64.deb. gdebi will install the dependencies automatically for you.
There is another way with apt if you don't want to install gdebi; I believe the syntax is sudo apt install ./rstudio-1.2.5042-amd64.deb.
Alternatively, if you already forced dpkg to install the package, you can run sudo apt-get --fix-broken install to install the dependencies.
Try install version
rstudio-xenial-1.1.456-amd64.deb in
https://www.rstudio.org/download/daily/desktop/ubuntu64/
Bro!
I am trying to install maven but getting error for broken packages. I tried with -f switch too but it did not helped.
simon#simon-pc:~$ sudo apt-get install -f maven
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
maven : Depends: libaether-java but it is not going to be installed
Depends: libplexus-containers1.5-java but it is not going to be installed
Depends: libsisu-ioc-java but it is not going to be installed
Depends: libwagon-java but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Try the following commands:
#sudo apt-get remove maven2
sudo add-apt-repository "deb http://ppa.launchpad.net/natecarlson/maven3/ubuntu precise main"
sudo apt-get update
sudo apt-get install maven3
If you encounter this:
The program 'mvn' can be found in the following packages:
maven
maven2
Try sudo apt-get install {selected-package}
#Just add those lines in /etc/profile
export M2_HOME=/usr/share/maven3
export M2=$M2_HOME/bin
export PATH=$M2:$PATH
I'm trying to install irods-rest on Ubuntu 14.04. This are the steps that I have follow untill now:
Maven 3 Installation
sudo apt-get purge maven maven2 maven3
sudo apt-add-repository ppa:andrei-pozolotin/maven3
sudo apt-get update
sudo apt-get install maven3
Irods-Rest Installation
git clone https://github.com/DICE-UNC/irods-rest.git
cd irods-rest/
mvn package -Dmaven.test.skip=true
but I get this error:
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.0:compile (default-compile) on project irods-rest: Fatal error compiling: invalid target release: 1.8
Can somebody help me?
EDIT:
I solved this issue after installing java 8 (before I had java 7)
I am using Ubuntu 14.04. I need to run mvn 3.3.3. Currently, the installed mvn version 3.0.5. When I enter
sudo apt-get install maven
it says
maven is already the newest version
is there a way to force install mvn 3.3.3?
Add a ppa containing maven 3.3.3, for example this one by executing these instructions on the command-line:
sudo apt-get purge maven maven2 maven3
sudo add-apt-repository ppa:andrei-pozolotin/maven3
sudo apt-get update
sudo apt-get install maven3
If you are not comfortable with a PPA (personal package archive) where you have no assurance of the provenance this is an alternative.
From a security perspective if you don't know where it came from don't install it.
In my linked article I retrieve the latest file from apache which is a known and trusted source. You can get the latest version
\#identify the latest version of maven
latest=$(curl http://www-us.apache.org/dist/maven/maven-3/ | tac | sed -ne 's/[^0-9]*\(\([0-9]\.\)\{0,3\}[0-9]\).*/\1/p' | head -1)
\#download it
wget http://www-us.apache.org/dist/maven/maven-3/$latest/binaries/apache-maven-$latest-bin.tar.gz
then install it from
\#Unpack it
sudo tar -zxf apache-maven-$latest-bin.tar.gz -C /usr/local/
\#create a sym link to it
sudo ln -s /usr/local/apache-maven-$latest/bin/mvn /usr/bin/mvn
as outlined in the link above.
I just installed maven 3.2.5.
To do that I downloaded the version I wanted as noted.
Unzipped using: tar -xvf apache-maven-3.2.5-bin.tar.gz
to: /opt/ and let p7zip do its thing.
Then in the terminal I did the following:
Check environment variable value:
echo $JAVA_HOME
Adding to PATH:
export PATH=/opt/apache-maven-3.2.5/bin:$PATH
typed: mvn -v
reviewed the output
For me the above worked fine.
Hi I have been trying to install SBT on mac by following in instruction at http://www.scala-sbt.org/0.13/tutorial/Manual-Installation.html
however I am stuck at the first step:
Put sbt-launch.jar in ~/bin.
I think I put sbt in bin already
Then i tried to install it through brew and the installation process went okay. But then when I checked for sbt version to confirm installation. I got a new error message:
vtmbpr:~ VT$ brew install sbt
Warning: You are using OS X 10.11.
We do not provide support for this pre-release version.
You may encounter build failures or other breakage.
==> Downloading https://dl.bintray.com/sbt/native-packages/sbt/0.13.9/sbt-0.13.9.tgz
######################################################################## 100.0%
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/sbt
Target /usr/local/bin/sbt
already exists. You may want to remove it:
rm '/usr/local/bin/sbt'
To force the link and overwrite all conflicting files:
brew link --overwrite sbt
To list all files that would be deleted:
brew link --overwrite --dry-run sbt
Possible conflicting files are:
/usr/local/bin/sbt
==> Caveats
You can use $SBT_OPTS to pass additional JVM options to SBT:
SBT_OPTS="-XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M"
This formula is now using the standard typesafe sbt launcher script.
Project specific options should be placed in .sbtopts in the root of your project.
Global settings should be placed in /usr/local/etc/sbtopts
==> Summary
🍺 /usr/local/Cellar/sbt/0.13.9: 5 files, 1.2M, built in 7 seconds
vtmbpr:~ VT$ sbt
Error: Unable to access jarfile /usr/local/bin/sbt-launcher.jar
vtmbpr:~ VT$ $ sbt
-bash: $: command not found
vtmbpr:~ VT$ sbt --version
Error: Unable to access jarfile /usr/local/bin/sbt-launcher.jar
vtmbpr:~ VT$
This might be a really simple question to everyone but it is incredibly frustrating to get stuck at even "getting my tool setup" stage of a coursera course for 3 hours of gooling.
Updated to remove and reinstall through brew. How could I tell if sbt is running okay afterwards? I tried running sbt --version but was thrown a set of errors.
vtmbpr:~ VT$ sudo rm /usr/local/bin/sbt
Password:
vtmbpr:~ VT$ port install sbt
-bash: port: command not found
vtmbpr:~ VT$ brew install sbt
Warning: sbt-0.13.9 already installed, it's just not migrated
Warning: You are using OS X 10.11.
We do not provide support for this pre-release version.
You may encounter build failures or other breakage.
vtmbpr:~ VT$ sbt
-bash: /usr/local/bin/sbt: No such file or directory
vtmbpr:~ VT$ sbt
-bash: /usr/local/bin/sbt: No such file or directory
vtmbpr:~ VT$ sbt --version
-bash: /usr/local/bin/sbt: No such file or directory
vtmbpr:~ VT$ brew link --overwrite sbt
Linking /usr/local/Cellar/sbt/0.13.9... 1 symlinks created
vtmbpr:~ VT$ sbt
s[info] Set current project to vt (in build file:/Users/VT/)
^R
> sbt --version
[error] Expected ID character
[error] Not a valid command: sbt (similar: set, boot, last)
[error] Expected project ID
[error] Expected configuration
[error] Expected ':' (if selecting a configuration)
[error] Expected key
[error] Not a valid key: sbt (similar: test, ivy-sbt, state)
[error] sbt --version
[error] ^
Since you've installed it manually and then used brew there might be conflicting files laying around, you should first remove it to start clean:
sudo rm /usr/local/bin/sbt
Then you can reinstall either with MacPorts or Homebrew:
MacPorts:
port install sbt
Homebrew:
brew install sbt
You might need to issue the sudo command with either of these depending on your environment. I prefer MacPorts, but whichever you decide to use is entirely your preference.
If you'd rather not reinstall sbt and try to force brew to link and overwrite all conflicting files, issue the command below, which hopefully will create the proper symlink:
brew link --overwrite sbt