cloudreve / Cloudreve

🌩支持多家云存储的云盘系统 (Self-hosted file management and sharing system, supports multiple storage providers)
https://cloudreve.org
GNU General Public License v3.0
21.21k stars 3.34k forks source link

arm版本不能运行 #268

Closed eshion closed 4 years ago

eshion commented 4 years ago

分别下载了3个arm的版本试了: cloudreve_3.0.0-beta3_linux_arm.tar.gz cloudreve_3.0.0-rc1_linux_arm.tar.gz cloudreve_3.0.0-beta1_linux_arm.tar.gz 各个分别用tar -zxf 解压后,chomd +x,再运行./cloudreve 提示: -sh: ./cloudreve: not found 用n1盒子测试。

lujiaxing commented 4 years ago

斐讯 N1 盒子用的 CPU Amlogic S905D. 架构为 ARM64. 官方编译只提供了 ARM32 的版本. 必然不能用. 你需要使用 ARM64 的工具链自行编译.

Soarfree commented 4 years ago

可以试试https://github.com/xavier-niu/cloudreve-docker 我用我家云docker成功部署

eshion commented 4 years ago

可以试试https://github.com/xavier-niu/cloudreve-docker 我用我家云docker成功部署

@anleihn 可以运行,非常棒!感谢感谢!

HFO4 commented 4 years ago

3.0.0版本release时已带有arm64版本

eshion commented 4 years ago

试了下3.0.0的arm64版本,还是不行,提示: ash: ./cloudreve: not found

@HFO4

BioniCosmos commented 4 years ago

试了下3.0.0的arm64版本,还是不行,提示: ash: ./cloudreve: not found

@HFO4

not found 不是写的很清楚吗?

你用 ls 指令看一下 cloudreve 文件是否在当前目录,不在的话用 cd 指令切换过去。

lujiaxing commented 4 years ago

试了下3.0.0的arm64版本,还是不行,提示: ash: ./cloudreve: not found @HFO4

not found 不是写的很清楚吗?

你用 ls 指令看一下 cloudreve 文件是否在当前目录,不在的话用 cd 指令切换过去。

不是因为文件不存在. 而是文件存在但是编译架构与当前系统架构不一样.

eshion commented 4 years ago

文件是存在的。我的斐讯 N1 盒子的系统是这样的 uname -a Linux phicomm 4.18.14-2-amlogic # 3-Alpine SMP PREEMPT Thu Nov 8 10:26:15 UTC 2018 aarch64 GNU/Linux

adriftliu commented 3 years ago

是不是这个不对 interpreter /system/bin/linker

cloudreve是这样的 interpreter /lib/ld-linux-aarch64.so.1

盒子、手机是没有 /lib 目录的,用的是interpreter /system/bin/linker

adriftliu commented 3 years ago

分别下载了3个arm的版本试了: cloudreve_3.0.0-beta3_linux_arm.tar.gz cloudreve_3.0.0-rc1_linux_arm.tar.gz cloudreve_3.0.0-beta1_linux_arm.tar.gz 各个分别用tar -zxf 解压后,chomd +x,再运行./cloudreve 提示: -sh: ./cloudreve: not found 用n1盒子测试。

我在termux上试了下,缺这些,但是我的N1刷了armbian是可以用的,很奇怪 libpthread.so.0 libdl.so.2 libc.so.6 ld-linux-aarch64.so.1

termux下装debian https://wiki.termux.com/wiki/Debian

就可以用了

root@localhost:~# ./cloudreve

   ___ _                 _
  / __\ | ___  _   _  __| |_ __ _____   _____
 / /  | |/ _ \| | | |/ _ | '__/ _ \ \ / / _ \
/ /___| | (_) | |_| | (_| | | |  __/\ V /  __/
\____/|_|\___/ \__,_|\__,_|_|  \___| \_/ \___|

   V3.2.0  Commit #61e6d9b  Pro=false
================================================

[Info]    2020-12-22 05:07:31 初始化数据库连接
[Info]    2020-12-22 05:07:31 开始进行数据库初始化...
expoli commented 3 years ago

@adriftliu 试一下自己编译 设置环境 CGO_ENABLED=0

expoli commented 3 years ago

@adriftliu 默认编辑开启了cgo,依赖一些c库文件

stonegr commented 1 year ago

@adriftliu 默认编辑开启了cgo,依赖一些c库文件

你好,官方可以不开启cgo吗?我手上的arm也都不能运行

qian-jiahong commented 1 year ago

我编译 ARMv5 版本,运行时,也遇到相同的问题:-sh: ./cloudreve: not found。 有办法解决了吗?

wnpllrzodiac commented 7 months ago

架构不一样,arm有十几个架构

qian-jiahong commented 7 months ago

架构不一样,arm有十几个架构

已经编译好了。在另外的贴有说明。