Skip to content

Instantly share code, notes, and snippets.

@lvzongting
Last active August 20, 2017 08:08
Show Gist options
  • Save lvzongting/940754bcfba8fd9b5c962619d2a0f815 to your computer and use it in GitHub Desktop.
Save lvzongting/940754bcfba8fd9b5c962619d2a0f815 to your computer and use it in GitHub Desktop.
安装atom 编辑器无需root权限

##在没有root权限的时候使用linuxbrew安装atom

  1. brew install libsecret --without-gobject-introspection
  2. brew install llvm --with-libcxx
  3. export LDFLAGS="-L/data/hongyang/.linuxbrew/opt/llvm/lib -Wl,rpath,/data/hongyang/.linuxbrew/opt/llvm/lib"
    export CC="clang"
    export CXX="clang++"
  4. brew install nvm
    export NVM_DIR="$HOME/.nvm"
    . "/data/hongyang/.linuxbrew/opt/nvm/nvm.sh"
  5. brew install node
  6. download atom release 1.19.1 and unzip
  7. ./script/build --install=~/.local

在编译的时候最好在内存img中编译,这样会快很多.
另外:如果启动不成功,那么需要使用atom -d来启动.

发图证明:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment