第二種就是下載 source 以後安裝
如果是 1.8.2 需要修改 install.sh
將 RESOURCE_NAME=cc.arduino.arduinoide
改為 RESOURCE_NAME=arduino-arduinoide
然後執行 arduino 會報一個很奇怪的錯誤
./arduino: line 35: /home/user/arduino-1.8.2/java/bin/java: No such file or directory
結果竟然是沒安裝 libc6-i386 但是安裝後換下一個錯誤
Picked up JAVA_TOOL_OPTIONS:
java.lang.UnsatisfiedLinkError: /home/user/arduino-1.8.2/java/lib/i386/libsplashscreen.so: libX11.so.6: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1845)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at java.awt.SplashScreen$1.run(SplashScreen.java:124)
at java.awt.SplashScreen$1.run(SplashScreen.java:122)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.SplashScreen.getSplashScreen(SplashScreen.java:121)
at processing.app.Base.
at processing.app.Base.main(Base.java:140)
改了一堆,把路徑加入 /etc/ld.so.conf 以後重新讀取還是不行
$ sudo ldconfig
$ ldconfig -p
發現是少裝了這個套件
$ sudo apt-get install libx11-6:i386
又發現還有其他套件沒裝,最後最後終於知道,如果是 64bit 機器請乖乖安裝 64 位元的版本吧,馬上順利開啟!
沒有留言:
張貼留言