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

bug: can not run APISIX on the ARM platfrom (centos 7) #589

Closed
moonming opened this issue Sep 25, 2019 · 6 comments
Closed

bug: can not run APISIX on the ARM platfrom (centos 7) #589

moonming opened this issue Sep 25, 2019 · 6 comments
Labels
help wanted Extra attention is needed

Comments

@moonming
Copy link
Member

Issue description

APISIX run error on the ARM platform

Environment

APISIX 0.7 RPM package
huawei cloud kc1.small.1
CentOS 7.6 64bit with ARM

Minimal test code / Steps to reproduce the issue

sudo apisix start

What's the actual result? (include assertion message & call stack if applicable)

[root@ecs-arm ~]# sudo apisix start
nginx: [error] init_by_lua error: error loading module 'rapidjson' from file '/usr/local/apisix//deps/lib64/lua/5.1/rapidjson.so':
/usr/local/apisix//deps/lib64/lua/5.1/rapidjson.so: cannot open shared object file: No such file or directory
stack traceback:
[C]: at 0xffff8ef4c5c0
[C]: in function 'require'
/usr/local/apisix/lua/apisix/core/schema.lua:1: in main chunk
[C]: in function 'require'
/usr/local/apisix/lua/apisix/core/config_etcd.lua:9: in main chunk
[C]: in function 'require'
/usr/local/apisix/lua/apisix/core.lua:4: in main chunk
[C]: in function 'require'
/usr/local/apisix/lua/apisix.lua:4: in main chunk
[C]: in function 'require'
init_by_lua:3: in main chunk

What's the expected result?

@moonming moonming added bug Something isn't working help wanted Extra attention is needed labels Sep 25, 2019
@soulsoul
Copy link
Member

file miss?

@moonming
Copy link
Member Author

file miss?

# ll /usr/local/apisix//deps/lib64/lua/5.1/rapidjson.so
-rwxr-xr-x 1 root root 2659990 9月   6 17:32 /usr/local/apisix//deps/lib64/lua/5.1/rapidjson.so

the file is exist.

@moonming
Copy link
Member Author

lua-rapidjson built failed by manual in ARM: xpol/lua-rapidjson#44
I think the RPM package can not use directly in ARM server.

@moonming
Copy link
Member Author

moonming commented Sep 25, 2019

rapidjson built failed in ARM: Tencent/rapidjson#1574

@moonming
Copy link
Member Author

APISIX supported ARM64 in ubuntu 18.04, huawei kunpeng CPU: https://mp.weixin.qq.com/s/ZulGGzQRbi23lTvEAbqr6w

@moonming moonming changed the title bug: can not run APISIX on the ARM platfrom bug: can not run APISIX on the ARM platfrom (centos 7) Oct 10, 2019
@moonming moonming removed the bug Something isn't working label Oct 23, 2019
@moonming
Copy link
Member Author

we removed rapidjson, so I think APISIX supports ARM64 centos now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants