Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build under MacOSX #19

Closed
richelbilderbeek opened this issue Oct 30, 2018 · 4 comments
Closed

Build under MacOSX #19

richelbilderbeek opened this issue Oct 30, 2018 · 4 comments

Comments

@richelbilderbeek
Copy link
Member

See here.

Current problem is:

The command "sudo apt-get install -qq oracle-java8-installer" failed and exited with 1 during 
@richelbilderbeek
Copy link
Member Author

  - # Java
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew cask install java; fi
  - # Java 8
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -qq oracle-java8-installer; fi
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install oracle-java8-set-default; fi

richelbilderbeek pushed a commit that referenced this issue Oct 30, 2018
@richelbilderbeek
Copy link
Member Author

  - # Java
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew cask install java; fi
  - # Java 8
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -qq oracle-java8-installer; fi
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install oracle-java8-set-default; fi

@richelbilderbeek
Copy link
Member Author

Got error:

> test_check("beastier")
── 1. Error: use, fast (@test-are_beast2_input_lines.R#5)  ─────────────────────
.onLoad failed in loadNamespace() for 'rJava', details:
  call: dyn.load(file, DLLpath = DLLpath, ...)
  error: unable to load shared object '/Users/travis/R/Library/rJava/libs/rJava.so':
  dlopen(/Users/travis/R/Library/rJava/libs/rJava.so, 6): Library not loaded: /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/lib/server/libjvm.dylib
  Referenced from: /Users/travis/R/Library/rJava/libs/rJava.so
  Reason: image not found
1: testthat::expect_true(beastier::are_beast2_input_lines(readLines(beastier::get_beastier_path("anthus_2_4.xml")))) at testthat/test-are_beast2_input_lines.R:5
2: quasi_label(enquo(object), label)
3: eval_bare(get_expr(quo), get_env(quo))
4: beastier::are_beast2_input_lines(readLines(beastier::get_beastier_path("anthus_2_4.xml")))
5: are_beast2_input_lines_deep(lines = lines, verbose = verbose, beast2_path = beast2_path)
6: is_beast2_input_file(filename = filename, verbose = verbose, beast2_path = beast2_path)
7: beastier::create_beast2_validate_cmd(input_filename = filename, beast2_path = beast2_path)
8: create_beast2_validate_cmd_jar(input_filename = input_filename, beast2_jar_path = beast2_path)
9: get_default_java_path()
10: rJava::.jinit
11: getExportedValue(pkg, name)
12: asNamespace(ns)
13: getNamespace(ns)
14: tryCatch(loadNamespace(name), error = function(e) stop(e))
15: tryCatchList(expr, classes, parentenv, handlers)
16: tryCatchOne(expr, names, parentenv, handlers[[1L]])
17: value[[3L]](cond)

Thanks to https://github.com/snowflakedb/dplyr-snowflakedb/wiki/Configuring-R-rJava-RJDBC-on-Mac-OS-X, I added:

  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then R --quiet -e 'install.packages("rJava", type="source", repos="http://cran.us.r-project.org")'; fi

@richelbilderbeek
Copy link
Member Author

Done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant