Skip to content

Commit

Permalink
Add annotations about how to solve the problem of lua
Browse files Browse the repository at this point in the history
- Add annotations about AdoptOpenJDK and lua binaries download link.
- Add annotations about how to solve problem that can't find 'libreadline.so.6' file during using lua.
  Reference link: electron-userland/electron-builder#993.
  • Loading branch information
huiyifyj committed Mar 30, 2020
1 parent 5992be3 commit e3e8ab6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions home/.profile
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export CARGO_INSTALL_ROOT
export PATH="$CARGO_HOME/bin:$CARGO_INSTALL_ROOT/bin:$PATH"

# JDK ENV setting, recommend to use AdoptOpenJDK
# Download from https://adoptopenjdk.net/releases.html
JAVA_HOME=$APP/jdk/jdk8 # JDK8 env variable
# JAVA_HOME=$APP/jdk/jdk11 # JDK11 env variable
export JAVA_HOME
Expand All @@ -85,6 +86,14 @@ export PATH="$GRADLE_HOME/bin:$PATH"
# Lua env
LUA_HOME=$APP/lua
export PATH="$LUA_HOME/bin:$PATH"
# Download from http://luabinaries.sourceforge.net/download.html
# Note: if you run `lua -v` display error.
# > lua: error while loading shared libraries:
# libreadline.so.6: cannot open shared object file: No such file or directory
# Use the following command line to resolve:
# $ cd /lib/x86_64-linux-gnu
# $ ln -s libreadline.so.7.0 libreadline.so.6
# Reference link: https://github.com/electron-userland/electron-builder/issues/993

# Flutter ENV Setting
export FLUTTER=$APP/flutter
Expand Down

0 comments on commit e3e8ab6

Please sign in to comment.