[SOLVED] scala 2.11.7 not run without root permissions, jdk 1.8.0u60
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
scala 2.11.7 not run without root permissions, jdk 1.8.0u60
Hi everybody,
I current study the scala, but I meet some problems, I install the slackware-current 32bit in the vmware, And install the jdk 1.8.0u60 and scala-2.11.7, with the root user, I can enter interactive mode , ane everything is ok. When I change to normal user, I can NOT run the scala interactive, but run scala --version can correct output the info.
So I install the centos 7.1 mini, the same jdk and scala , the normal user can run fine.
Can someone help me? I like the slackware and do not want to change to centos.
Edit the scala.SlackBuild to the new version :
Line 9 to : VERSION=${VERSION:-2.11.7}
Line 49 : mv $TMP/$PRGNAM-$VERSION/{bin,lib,man} $PKG/$LIBDIR/$PRGNAM
trying to translate the error, it seems the scala interpreter is not able to find java.
wild guessing:
have you reboot your virtual machine after installing jdk?
the only difference that I seem to spot in the output from your screens is that I have a "Server VM", not a "Client VM"
Code:
$ scala
Welcome to Scala version 2.11.7 (Java HotSpot(TM) Server VM, Java 1.8.0_60).
Type in expressions to have them evaluated.
Type :help for more information.
scala> 1 + 2
res0: Int = 3
have you by any chance installed jre instead of jdk from SBo?
(most probably shouldn't matter but it won't hurt) are you using a full install of Slackware?
the only difference that I seem to spot in the output from your screens is that I have a "Server VM", not a "Client VM"
Code:
$ scala
Welcome to Scala version 2.11.7 (Java HotSpot(TM) Server VM, Java 1.8.0_60).
Type in expressions to have them evaluated.
Type :help for more information.
scala> 1 + 2
res0: Int = 3
have you by any chance installed jre instead of jdk from SBo?
(most probably shouldn't matter but it won't hurt) are you using a full install of Slackware?
Good news and strange news. I download the new slackware-current from Alien site, I install the new vmware machine full install all except the kde,kdel.
I installpkg the 2 package that ponce post, the scala run fine. That is a good new.
Thanks Ponce, Alien, Eric and other guys .
btw. ponce can you share the script of jdk,scala, or can you figure out the different with the slackbuilds.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.