apache / apache/rocketmq-client-nodejs

Can not install with npm in docker container

未关闭
#11 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
C++
星标
193
派生
36
PR 合并指标
30 天内没有已合并 PR

描述

## What Happens?
Can not install within docker container

## 操作系统 Debian 9
![image](https://user-images.githubusercontent.com/3538629/58812171-d6765e80-8653-11e9-95e0-27f040eef3fc.png)

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 上可正常安装
```
> apache-rocketmq@1.0.0-rc1 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:
```

贡献指南

打开贡献指南

调研方向

从 script/download_lib.js 和报告中显示的 npm 安装流程开始,然后在 Debian 9 Docker 容器中重现安装过程。将失败的库 URL 与成功的 Ubuntu 16.04 URL 进行比较,并使用 node-gyp rebuild 验证结果。当 npm 安装不再请求缺失的库且原生构建完成时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
cpp, docker, node.js
领域
build-system, devops
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。