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

使用docker容器运行此项目 #288

Open
pybnafp opened this issue Jul 19, 2024 · 0 comments
Open

使用docker容器运行此项目 #288

pybnafp opened this issue Jul 19, 2024 · 0 comments

Comments

@pybnafp
Copy link

pybnafp commented Jul 19, 2024

以下是我在此过程遇到的问题:
1、apt-get install libmysqlclient-dev指令, 该库无法安装,因为本机系统原有安装包libzstd1的依赖问题:
对于此问题,网上解法有通过aptitude install指令进行自动处理依赖问题进行安装,但是失败了;我才用docker镜像方式,创建一个ubuntu22.04的容器,在该容器中,安装运行该项目所需的软件包(包括libmysqlclient-dev),也包括mysql,可以将docker容器看作虚拟机环境
2、遇到async_xxx函数返回值没有返回,添加return NULL,除此之外还有其他警告,我的解法是禁止显示警告,做法是在makefile文件中CXXFLAGS添加-w选项
3、在docker容器中建立端口连接:即本机系统的8080端口(自己可指定)对应docker容器中的9006端口(要和项目中端口一致),做法是修改容器中的hostconfig.json和config.v2.json配置文件,两者具体添加有区别
以上是主要问题,仅供参考,具体解决方式可能不完全适合

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

1 participant