博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
安装fedora在u盘_如何在Fedora Linux上安装Scala
阅读量:2533 次
发布时间:2019-05-11

本文共 1838 字,大约阅读时间需要 6 分钟。

安装fedora在u盘

This introduces how to install Scala 2.9.2 on 64-bit Fedora 17. There are some changes needed to make scala work on Fedora Linux 17. Please check it out in the answer.

本介绍如何在64位Fedora 17上安装Scala 2.9.2。要使Scala在Fedora Linux 17上工作,需要进行一些更改。请在答案中进行检查。

安装Java (Install Java)

Scala depends on Java, so please install Java first. In this tutorial, we installed to: /usr/java/jdk1.6.0_24/lib/.

Scala依赖Java,因此请先安装Java。 在本教程中,我们将安装到: /usr/java/jdk1.6.0_24/lib/

从Fedora yum存储库安装Scala (Install Scala from the Fedora yum repository)

In the repository for Fedora 17, it is scala 2.9.2

在Fedora 17的存储库中,它是scala 2.9.2。

# yum install scala

为Scala准备Java环境 (Prepare the Java environment for Scala)

However, if you invoke scala directly after installed it, you will likely get an error message like this:

但是,如果在安装后直接调用scala ,则可能会收到如下错误消息:

/usr/bin/scala: error: JVM_LIBDIR /usr/lib/jvm-exports/java does not exist or is not a directory

It looks there is something related to Java is not correct.

看来有一些与Java有关的东西是不正确的。

After checking /bin/scala and searching for Java, the first line that sets up a red flag is:

在检查/bin/scala并搜索Java之后,设置红色标记的第一行是:

export JAVA_HOME=/usr/lib/jvm/java/

I don’t understand why the JAVA_HOME should be hard coded. I don’t want to change the files for Scala neither so that I need not to edit the file every time I update it.

我不明白为什么应该对JAVA_HOME进行硬编码。 我也不想更改Scala的文件,因此不必在每次更新时都编辑文件。

So to make Scala happy, let’s prepare the directories for it.

因此,为了使Scala开心起来,让我们为其准备目录。

Prepare the jvm-exports directory:

准备jvm-exports目录:

$ cd /usr/lib/jvm-exports/$ sudo ln -s /usr/java/jdk1.6.0_24/lib/ ./java

Prepare the jvm directory:

准备jvm目录:

$ cd /usr/lib/jvm$ sudo ln -s /usr/java/jdk1.6.0_24/ ./java

By now, scala should work in Fedora 17 Linux.

现在,scala应该可以在Fedora 17 Linux中使用。

Answered by anonymous.
匿名回答。

翻译自:

安装fedora在u盘

转载地址:http://wmowd.baihongyu.com/

你可能感兴趣的文章
利用LDA进行文本聚类(hadoop, mahout)
查看>>
第三周作业
查看>>
js添加删除行
查看>>
浏览器性能测试网址
查看>>
[MTK FP]用Python把图片资源image.rar中为.pbm后缀的文件更改为.bmp后缀的方法
查看>>
实验二
查看>>
[LeetCode]203. Remove Linked List Elements 解题小结
查看>>
测试一下
查看>>
vue base64
查看>>
【Django实战开发】案例一:创建自己的blog站点-1.安装及搭建开发环境
查看>>
Pie(二分)
查看>>
Mysql 索引优化
查看>>
09湖州二模(自选模块不等式)
查看>>
Mybatis Batch 批量操作
查看>>
Ubuntu server搭建Java web服务器
查看>>
WSGI学习系列WSME
查看>>
java读取xml配置文件和properties配置文件
查看>>
HDU 4300 Contest 1
查看>>
POJ 3311
查看>>
Button MouseEvent颜色变化
查看>>