linux離線安裝rjava,無法在ubuntu系統上安裝rJava

我已經看過一些與此相關的帖子…但是所有建議的解決方案看起來似乎不工作….我在EC2實例中運行R,并運行以下命令來嘗試安裝rJava但無效…任何幫助將不勝感激。

> install.packages("rJava")

Installing package(s) into ‘/home/ubuntu/R/library’

(as ‘lib’ is unspecified)

trying URL 'http://cran.stat.nus.edu.sg/src/contrib/rJava_0.9-3.tar.gz'

Content type 'application/x-gzip' length 537153 bytes (524 Kb)

opened URL

==================================================

downloaded 524 Kb

* installing *source* package ‘rJava’ ...

** package ‘rJava’ successfully unpacked and MD5 sums checked

checking for gcc... gcc -std=gnu99

checking for C compiler default output file name... a.out

checking whether the C compiler works... yes

checking whether we are cross compiling... no

checking for suffix of executables...

checking for suffix of object files... o

checking whether we are using the GNU C compiler... yes

checking whether gcc -std=gnu99 accepts -g... yes

checking for gcc -std=gnu99 option to accept ISO C89... none needed

checking how to run the C preprocessor... gcc -std=gnu99 -E

checking for grep that handles long lines and -e... /bin/grep

checking for egrep... /bin/grep -E

checking for ANSI C header files... yes

checking for sys/wait.h that is POSIX.1 compatible... yes

checking for sys/types.h... yes

checking for sys/stat.h... yes

checking for stdlib.h... yes

checking for string.h... yes

checking for memory.h... yes

checking for strings.h... yes

checking for inttypes.h... yes

checking for stdint.h... yes

checking for unistd.h... yes

checking for string.h... (cached) yes

checking sys/time.h usability... yes

checking sys/time.h presence... yes

checking for sys/time.h... yes

checking for unistd.h... (cached) yes

checking for an ANSI C-conforming const... yes

checking whether time.h and sys/time.h may both be included... yes

configure: checking whether gcc -std=gnu99 supports static inline...

yes

checking whether setjmp.h is POSIX.1 compatible... yes

checking whether sigsetjmp is declared... yes

checking whether siglongjmp is declared... yes

checking Java support in R... present:

interpreter : '/usr/bin/java'

archiver : ''

compiler : ''

header prep.: ''

cpp flags : ''

java libs : '-L/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64/server -L/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64 -L/usr/lib/jvm/java-6-openjdk-amd64/jre/../lib/amd64 -L/usr/java/packages/lib/amd64 -L/usr/lib/x86_64-linux-gnu/jni -L/lib/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu -L/usr/lib/jni -L/lib -L/usr/lib -ljvm'

configure: error: Java Development Kit (JDK) is missing or not registered in R

Make sure R is configured with full Java support (including JDK). Run

R CMD javareconf

as root to add Java support to R.

If you don't have root privileges, run

R CMD javareconf -e

to set all Java-related variables and then install rJava.

ERROR: configuration failed for package ‘rJava’

* removing ‘/home/ubuntu/R/library/rJava’

Warning in install.packages :

installation of package ‘rJava’ had non-zero exit status

The downloaded source packages are in

‘/tmp/RtmpaEiskU/downloaded_packages’

> system("sudo R CMD javareconf")

Java interpreter : /usr/bin/java

Java version : 1.6.0_24

Java home path : /usr/lib/jvm/java-6-openjdk-amd64/jre

Java compiler : not present

Java headers gen.:

Java archive tool:

Java library path: $(JAVA_HOME)/lib/amd64/server:$(JAVA_HOME)/lib/amd64:$(JAVA_HOME)/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib

JNI linker flags : -L$(JAVA_HOME)/lib/amd64/server -L$(JAVA_HOME)/lib/amd64 -L$(JAVA_HOME)/../lib/amd64 -L/usr/java/packages/lib/amd64 -L/usr/lib/x86_64-linux-gnu/jni -L/lib/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu -L/usr/lib/jni -L/lib -L/usr/lib -ljvm

JNI cpp flags :

Updating Java configuration in /etc/R

Done.

> install.packages("rJava")

[same as before, just skipping to the error parts...]

java libs : '-L/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64/server -L/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64 -L/usr/lib/jvm/java-6-openjdk-amd64/jre/../lib/amd64 -L/usr/java/packages/lib/amd64 -L/usr/lib/x86_64-linux-gnu/jni -L/lib/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu -L/usr/lib/jni -L/lib -L/usr/lib -ljvm'

configure: error: Java Development Kit (JDK) is missing or not registered in R

Make sure R is configured with full Java support (including JDK). Run

R CMD javareconf

as root to add Java support to R.

If you don't have root privileges, run

R CMD javareconf -e

to set all Java-related variables and then install rJava.

ERROR: configuration failed for package ‘rJava’

* removing ‘/home/ubuntu/R/library/rJava’

Warning in install.packages :

installation of package ‘rJava’ had non-zero exit status

The downloaded source packages are in

‘/tmp/RtmpaEiskU/downloaded_packages’

> sessionInfo()

R version 2.15.1 (2012-06-22)

Platform: x86_64-pc-linux-gnu (64-bit)

locale:

[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=C LC_COLLATE=C

[5] LC_MONETARY=C LC_MESSAGES=C LC_PAPER=C LC_NAME=C

[9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=C LC_IDENTIFICATION=C

attached base packages:

[1] stats graphics grDevices utils datasets methods base

loaded via a namespace (and not attached):

[1] tools_2.15.1

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/396110.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/396110.shtml
英文地址,請注明出處:http://en.pswp.cn/news/396110.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

HBase基礎知識(三):HBase架構進階、讀寫流程、MemStoreFlush、StoreFile Compaction、Region Split

1. 架構原理 1)StoreFile 保存實際數據的物理文件,StoreFile以HFile的形式存儲在HDFS上。每個Store會有一個或多個StoreFile(HFile),數據在每個StoreFile中都是有序的。 2)MemStore 寫緩存,由于…

CentOS6.7-64bit編譯hadoop2.6.4

1.下載maven(apache-maven-3.3.3-bin.tar.gz) http://archive.apache.org/dist/maven/maven-3/3.3.3/binaries/apache-maven-3.3.3-bin.tar.gz 2.安裝maven tar -zxvf apache-maven-3.3.3-bin.tar.gz -C /usr/local 3.添加環境變量 vim /etc/profileexpo…

第一章節測試

大家在做第一章測試題時,需要復習如下相關知識點:編譯型VS解釋型、變量名規范、數據類型、程序交互、格式化輸出、運算符、流程控制。1.簡述編譯型與解釋型語言的區別,且分別列出你知道的那些語言屬于編譯型,哪些屬于解釋型。2.執…

VS2015升級Update2之后Cordova程序提示:此應用程序無法在此電腦上運行

VS2015在升級到Update2之后,有可能出現如下異常,在運行Cordova項目時提示: 查看輸出面板會有亂碼錯誤信息: 出現此問題的原因是在于npm程序損壞了。vs調用的npm程序并不是在node安裝目錄下的npm,而是在: C:…

gitter 卸載_最佳Gitter渠道:學習編碼

gitter 卸載by Gitter通過吉特 最佳Gitter渠道:學習編碼 (Best Gitter channels for: Learning to Code) If you’re learning to code in 2016, you’re in luck — thanks to a huge range of helpful websites, MOOCs, books, and learners’ communities, you’…

雙鑒探測器是哪兩種探測方式結合_老師傅帶你看懂火災探測器的種類和基本原理,看完漲知識了...

為什么極早期的火災探測十分關鍵?火災的產生我們生活的環境中充滿著大量的可燃物質,空氣中的氧氣含量通常也足夠滿足燃燒條件。但是還有另外一個形成火災的條件就是:點火能量必須可以驅使氧化的過程開始。點火能量源可以是多種多樣的&#xf…

JS入門熟知

JS是面向對象的語言 封裝繼承多態聚集(對象中具有引用其他對象的能力)JS使用中絕大多數情況不需要進行面向對象的設計,很多情況是使用已經設計好,準備好的對象,基于對象的語言. JS的使用(引入) jsp、html中直接在script標簽中書寫…

c語言專業實習報告,C語言個人實習報告(范文1)

《C語言個人實習報告.doc》由會員分享,可免費在線閱讀全文,更多與《C語言個人實習報告》相關文檔資源請在幫幫文庫(www.woc88.com)數億文檔庫存里搜索。1、好的學習興趣,獨立的編程風格。(組C語言實訓報告課題名稱:通訊錄管理系統…

分析不同類型頁面渲染過程

現在讓我們看看瀏覽器從網絡上加載資源所耗費的時間(我們忽略從緩存以及從CDN等中間商網絡上加載資源),我們首先要知道的是: 一個到無服務的網路往返 (傳播延遲) 大約100ms服務器對于HTML文檔的響應大約100ms,對于其他…

引入 javascript_在您JavaScript項目中引入類型安全性? 再想一想

引入 javascriptby James Wright詹姆斯賴特(James Wright) 在您JavaScript項目中引入類型安全性? 再想一想 (Introducing Type Safety To Your JavaScript Project? Think Again) 更新— 2017年2月1日 (Update — 1st February 2017) I’ve heard various counter…

劣幣驅逐良幣通俗解釋_如何通俗理解劣幣驅逐良幣的問題,同時如何扭轉這個現象?...

以牛奶為例談劣幣驅逐良幣。【原來】大家都賣的純正的純牛奶,因為。牛奶的來源和生產工藝基本上都差不多,所以說產品的品質也沒有什么大的差異。【后來】奶制品企業為了爭奪市場開始打價格戰,你賣5塊我就賣4塊,你賣4塊我就賣3塊5&…

c語言里 如何取得線程的lpparameter'參數,請問線程函數如何訪問對話框類中的變量...

我線程函數定義在對話框類的實現文件中需要訪問對話框類頭文件中聲明的變量怎么才可以?i_noname(晚九朝五) 于 2005-9-15 16:14:25DWORD WINAPI Proc(LPVOID lpParameter ){CDialog *pDlg (CDialog *)lpParameter;...}啟用線程時把對話框指針傳進去AfxBeginThread(…

Android內存優化——內存泄露檢測分析方法

上一篇文章總結了一些常見的內存泄露場景及優化方案,這篇文章繼續總結內存泄露的一些常用的檢測和分析方法。 Lint代碼檢查 AndroidStudio自動Lint代碼檢查工具,一些常見的代碼警告Lint工具都會給我們提示。使用也比較簡單: Analyze —> I…

ImageLoader加載圖片

先導universal-image-loader-1.9.3包 在application配置 android:name".MyApplication" intent權限 1 package com.ch.day13_imageloaderdemo;2 3 import java.io.File;4 5 import com.nostra13.universalimageloader.cache.disc.impl.UnlimitedDiscCache; 6 impor…

hackintosh黑蘋果_為什么您的下一個Mac應該是Hackintosh?

hackintosh黑蘋果by Sebastian Dobrincu塞巴斯蒂安多布林庫(Sebastian Dobrincu) 為什么您的下一個Mac應該是Hackintosh? (Why Your Next Mac Should Be a Hackintosh ?) I just finished a 48-hour Hackintosh building marathon. It was a fun experience and I…

一張圖解釋什么是遺傳算法_遺傳算法簡介及代碼詳解

(allele)數據值,屬性,值基因座(locus)位置,iterator位置表現型(phenotype)參數集,解碼結構,候選解染色體:又可以叫做基因型個體(individuals)群體/種群(population):一定數量的個體組成&#xf…

c語言程序設計學生程序查詢,《c語言程序設計報告-學生信息管理系統》.doc

《c語言程序設計報告-學生信息管理系統》中南大學??C語言程序設計實踐報告?????題 目 學生信息管理系統學生姓名 張眼指導教師 劉偉榮學 院 信息科學與工程學院專業班級 電氣信息1113班完成時間 2012年6月28日星期四?1.設計任務及設計目標學生信息管理系統是基于系統主…

ListString 和 ArrayListString的區別

最近對這兩個問題比較懵逼&#xff0c;關于List和ArrayList、List<String> list new ArrayList<String>(); 好了&#xff0c;先搞明白List 和 ArrayList吧。 List是一個接口&#xff0c;是Collection接口的一個子接口&#xff0c;是一個有序的集合。 ArrayList是L…

java城市級聯一次查詢_我的城市沒有任何設計活動,所以我自己組織了一次。...

java城市級聯一次查詢by Marty Laurita由Marty Laurita 我的城市沒有任何設計活動&#xff0c;所以我自己組織了一次。 (There weren’t any design events in my city, so I organized one myself.) “The meeting of two personalities is like the contact of two chemical…

Access denied for user 'root'@'localhost' (using password: YES) 問題解決小記

初學php&#xff0c;按照視頻安裝后好mysql后 終端運行命令 mysql -u root -p 然后輸入安裝mysql時輸入的密碼六個1&#xff0c;會報這樣的錯誤&#xff1a;Access denied for user rootlocalhost (using password: YES) &#xff1b; 百度了一大堆&#xff0c;大海撈針一般找…