Installing and loading "rJava" - rjava

I am encountering problems loading the "Deducer" package due a loading problem with "rJava". The installation of "rJava" seems to be done correctly, yet it fails when calling it to load.
Please, can anyone shed some light of wisdom? :)
Error : .onLoad failed in loadNamespace() for 'rJava', details:
call: stop("No CurrentVersion entry in '", key, "'! Try re-installing Java and make sure R and Java have matching architectures.")
error: object 'key' not found
Error: package/namespace load failed for ‘rJava’

On xubuntu 12.04 with javac 1.7.0_21 set as default via:
$ sudo update-alternatives
then
$ sudo R CMD javareconf
$ sudo R
> update.packages()

Related

Switch icu4c version (Homebrew)

When running composer commands I get an error and it seems I have to change the icu4c version. (At the moment I need a composer command to re(install) - composer global require weprovide/valet-plus) However, when I try to change it using the steps below I get errors.
Error when running composer command (globally):
dyld: Library not loaded: /usr/local/opt/openldap/lib/libldap-2.4.2.dylib
Referenced from: /usr/local/bin/php
Reason: image not found
[2] 12103 abort composer global require weprovide/valet-plus
Steps taken to change icu4c version:
$ cd $(brew --prefix)/Homebrew/Library/Taps/homebrew/homebrew-core/Formula
$ git checkout 2a369a82c7f5b3b2ab2704ff0796635514aae955
$ brew reinstall ./icu4c.rb
Error when reinstall icu4c.rb:
Error: Failed to load cask: ./icu4c.rb
Cask 'icu4c' is unreadable: wrong constant name #<Class:0x00007fba9a59e168>
Warning: Treating ./icu4c.rb as a formula.
==> Downloading https://ghcr.io/v2/homebrew/core/icu4c/manifests/67.1
##O#- #
curl: (22) The requested URL returned error: 404
Error: Failed to download resource "icu4c_bottle_manifest"
Download failed: https://ghcr.io/v2/homebrew/core/icu4c/manifests/67.1
Anyone who knows how to tackle this? I guess version 67.1 is needed for everything to work. Please let me know if you know anything that might be helpful, thanks in advance!

Unable to change GO version in PhotonOS

I have deployed PhotonOS using directions from photon and VIC configuration, while running command docker run -v $(pwd):/go/src/github.com/vmware/vic \-w /go/src/github.com/vmware/vic golang:1.6 make all
an Error appears:
Please install go1.7 (found: go version go1.6.3 linux/amd64)
Makefile:152: recipe for target 'goversion' failed
make: *** [goversion] Error 1
`
to solve it I have tried to update
go1.6.3 to go1.7 using solution - changeing go version manually
after steps go version is showing go1.4.2, but the previous error still complains on go version 1.6.3.
Also, I have tried to install "gvm" using bash < <(curl -s -S -L https://raw.github.com/moovweb/gvm/master/binscripts/gvm-installer) , whenever I try to call gvm install go1.7 it brings
-bash: gvm: command not found
whenever I retry running gvm-installer it says
ERROR: Already installed!
Any help is highly appreciated!!
use :
docker run -v $(pwd):/go/src/github.com/vmware/vic \-w /go/src/github.com/vmware/vic golang:1.7 make all
command instead, that will work on PhotonOS

Install rJava in R

I have R and Java installed on C:\Program Files. I am receiving this message when i try to load the rJava library. I have successfully installed the rJava package. thanks.
library(rJava)
Error : .onLoad failed in loadNamespace() for 'rJava', details:
call: fun(libname, pkgname)
error: No CurrentVersion entry in Software/JavaSoft registry! Try re-installing Java and make sure R and Java have matching architectures.
Error: package or namespace load failed for ‘rJava’
Is your Java_HOME path variable the same for both installations.
Try echo $JAVA_HOME and see what happens?
Also the installation suggests that you need to install the JDK not just the java library.
Here is a link the most recent JDK:
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Cannot install package "predictionet" on Windows

I am trying to install predictionet but having troubles. Clearly there are no windows binaries available so I have been trying to install by building from source.
I have Rtools installed from here.
So far I have tried to use this command:
> install.packages("C:/Users/Blah/predictionet_1.10.0.tar.gz", repos = NULL, type="source")
But I am receiving this error message:
Installing package into ‘C:/Users/Blah/Documents/R/win-library/3.1’
(as ‘lib’ is unspecified)
* installing *source* package 'predictionet' ...
** libs
*** arch - i386
Warning: running command 'make -f "C:/PROGRA~1/R/R-31~1.0/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R-31~1.0/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="predictionet.dll" OBJECTS="foo_mrmr.o mrnet_adapted.o mrnet_adapted2.o mrnet_ensemble_standalone.o"' had status 309
ERROR: compilation failed for package 'predictionet'
* removing 'C:/Users/Blah/Documents/R/win-library/3.1/predictionet'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-31~1.0/bin/x64/R" CMD INSTALL -l "C:\Users\Blah\Documents\R\win-library\3.1" "C:/Users/Blah/Desktop/predictionet_1.10.0.tar.gz"' had status 1
Warning in install.packages :
installation of package ‘C:/Users/Blah/Desktop/predictionet_1.10.0.tar.gz’ had non-zero exit status
I am new to R so have no idea how to go about troubleshooting this, any help would be much obliged!
Note: I am using Rstudio
You may try :
source("http://bioconductor.org/biocLite.R")
biocLite("predictionet")

Try to port intall gcc47, Error: Dependency 'ld64' not found

Try to install gcc47 on osx 10.6.8 but got the following error:
sudo port install gcc47
---> Computing dependencies for gcc47
Error: Dependency 'ld64' not found.
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
Did I miss anything?
I think it's still there at /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/ld64 However, the Portfile seems so buggy that port index can't parse it. I installed llvm-3.0 first and then edited the Portfile, commenting out the following lines
#if {![variant_isset llvm29] && ![variant_isset llvm30] && ![variant_isset llvm31]} {
# default_variants +llvm30
#}
#set llvm_version {}
#variant llvm29 conflicts llvm30 llvm31 description {Use llvm-2.9 for libLTO} {
# set llvm_version 2.9
# depends_lib-append port:llvm-${llvm_version}
#}
#variant llvm30 conflicts llvm29 llvm31 description {Use llvm-3.0 for libLTO} {
set llvm_version 3.0
# depends_lib-append port:llvm-${llvm_version}
#}
#variant llvm31 conflicts llvm29 llvm30 description {Use llvm-3.1 for libLTO} {
# set llvm_version 3.1
# depends_lib-append port:llvm-${llvm_version}
#}
After this, running "sudo portindex" cleared the issue. Finally I was able to install ld64 and gcc47.
The following commands solved my problem. Since the error was only for ld64 and cctools ports in my case.
sudo port clean ld64 cctools
sudo port install gcc47
The ld64 package has been pulled from macports as of today:
http://www.macports.org/ports.php?by=name&substr=ld64
It was still available yesterday though.
However, the package did not build correctly when I tried it yesterday because of build errors with llvm-3.0.
The ld64 package is back on the index but it fails to build :-(
First there is a xcodebuild issue with the license agreement. I fixed it with the tip from 1. But now there's a build failure because of an undeclared identifier.
Run the following command; seems working for now.
sudo port selfupdate
sudo port install gcc47
I do not know how you get this problem. I am also encountering this problem after I upgrade my system to Mavericks. After check the main.log file, I found that the error is because the build cannot find . Then, I install the newest version Xcode Command Line Tools , it works! Hope my experience is helpful to you.

Resources