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

在树莓派上出现错误 #1

Open
wenanlee opened this issue Jan 4, 2019 · 4 comments
Open

在树莓派上出现错误 #1

wenanlee opened this issue Jan 4, 2019 · 4 comments

Comments

@wenanlee
Copy link

wenanlee commented Jan 4, 2019

curl https://terminal.moja-lab.com/shells/W8xr6giGFv.sh | sudo sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 13435 100 13435 0 0 44418 0 --:--:-- --:--:-- --:--:-- 44486
id: "moja": no such user
----------------------------------------创建moja用户------------------------------------------
--------------------------------------安装gcc---------------------------------------
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/6/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../src/configure -v --with-pkgversion='Raspbian 6.3.0-18+rpi1+deb9u1' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-6 --program-prefix=arm-linux-gnueabihf- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libitm --disable-libquadmath --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-armhf/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-armhf --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-armhf --with-arch-directory=arm --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-sjlj-exceptions --with-arch=armv6 --with-fpu=vfp --with-float=hard --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf
Thread model: posix
gcc version 6.3.0 20170516 (Raspbian 6.3.0-18+rpi1+deb9u1)
-------------------------------------------读取私钥---------------------------------------------
-----------------------------------------变量初始化---------------------------------------------
----------------------------------下载nodejs安装包 ------------------------------------
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 27 100 27 0 0 97 0 --:--:-- --:--:-- --:--:-- 98
----------------------------------解压nodejs安装-------------------------------------
xz: (stdin): File format not recognized
tar: Child returned status 1
tar: Error is not recoverable: exiting now
----------------------------------nodejs安装包解压失败--------------------------

@Mountains-and-rivers
Copy link

nodejs 安装包解压失败

脚本解压命令是 tar -xvf remote-terminal-client.tar.gz

如果是tar包损坏你重新新安装再试一下

另外麻烦把树莓派的 系统类型 和 处理器架构告诉我

@wenanlee
Copy link
Author

wenanlee commented Jan 7, 2019

我刚刚测试了一下,我的tar包使用正常.
Linux raspberrypi 4.14.79+ #1159 Sun Nov 4 17:28:08 GMT 2018 armv6l GNU/Linux armv6l

@Mountains-and-rivers
Copy link

我在测试的时候 只接触到了armv7l的树莓派处理器架构 armv6l的node安装包没有放入服务器
所以下载node安装包的时候是不能从服务器上下载armv6l的安装包的 不过很感谢你遇到的这个问题 下一个版本我会把arm系列的全部加入 不过也可以解决 你把安装脚本在本地存储成文件。下载nodejs安装包的链接改成从官网下载下载armv6l 像这样:
Beta版:curl -o /$HOME_DIR/moja/.config/$verName.tar.xz https://nodejs.org/dist/v8.12.0/node-v8.12.0-linux-armv6l.tar.xz
然后再手动以sudo 权限运行这个脚本 你可以试试

@jrtkcoder
Copy link

树莓派3b,安装时出错了:
npm WARN pmtwo No license field.
npm
WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.1 (node_modules/fsevents):
SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"l

  • pm2@4.1.2
    fs.js:115
    throw err;
    ^

Error: ENOENT: no such file or directory, open '/home/moja/.moja/client/vundefined/node_modules/remote-terminal-client/pm2.jso n'
at Object.openSync (fs.js:439:3)
at Object.writeFileSync (fs.js:1190:35)
at Object. (/home/moja/.moja/client/v/node_modules/remote-terminal-client/start.js:35:4)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:282:19)
-------------------------------------------添加定时任务--------------------------------------------

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

3 participants