rocketmq-client-nodejs icon indicating copy to clipboard operation
rocketmq-client-nodejs copied to clipboard

Can not install with npm in docker container

Open hailiang-wang opened this issue 5 years ago • 0 comments

What Happens?

Can not install within docker container

操作系统 Debian 9

image

trace

$ wget https://opensource-rocketmq-client.oss-cn-hangzhou.aliyuncs.com/cpp-client/linux/1.2.0/UBUNTU/5.5.04/librocketmq.a
--2019-06-03 23:04:24--  https://opensource-rocketmq-client.oss-cn-hangzhou.aliyuncs.com/cpp-client/linux/1.2.0/UBUNTU/5.5.04/librocketmq.a
Resolving opensource-rocketmq-client.oss-cn-hangzhou.aliyuncs.com (opensource-rocketmq-client.oss-cn-hangzhou.aliyuncs.com)... 118.31.219.223
Connecting to opensource-rocketmq-client.oss-cn-hangzhou.aliyuncs.com (opensource-rocketmq-client.oss-cn-hangzhou.aliyuncs.com)|118.31.219.223|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2019-06-03 23:04:24 ERROR 404: Not Found.

操作系统

root@389de4c49908:/# cat /etc/*release
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

经测试,在Ubuntu 16.04 上可正常安装

> [email protected] install /home/hain/tmp/node_modules/apache-rocketmq                                                                               > node ./script/download_lib.js && node-gyp rebuild

[rocketmq sdk] [info] downloading [https://opensource-rocketmq-client.oss-cn-hangzhou.aliyuncs.com/cpp-client/linux/1.2.0/UBUNTU/16.04/librocketmq.a]...
[rocketmq sdk] [info] downloaded library [https://opensource-rocketmq-client.oss-cn-hangzhou.aliyuncs.com/cpp-client/linux/1.2.0/UBUNTU/16.04/librocketmq.a].
[rocketmq sdk] [info] all libraries have been written to disk.
make: Entering directory '/home/hain/tmp/node_modules/apache-rocketmq/build'
  CXX(target) Release/obj.target/rocketmq/src/rocketmq.o
  CXX(target) Release/obj.target/rocketmq/src/producer.o
In file included from ../src/producer.cpp:18:0:

hailiang-wang avatar Jun 03 '19 15:06 hailiang-wang