cd ~/apollo/docker/scripts docker ps -a #查看目前docker id ConTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 35190e0a0ece apolloauto/apollo:dev-x86_64-18.04-20210914_1336 "/bin/bash" 17 hours ago Exited (0) 17 hours ago apollo_dev_ning c9e4f63ccb15 hello-world "/hello" 2 days ago Exited (0) 2 days ago compassionate_pascal docker start 35190e0a0ece #启动容器 bash dev_into.sh #进入系统 [xxx@in-dev-docker:/apollo]$ ./apollo.sh build #注意需要访问github编译错误internal compiler error:killed(program cc1plus),
这是因为交换空间不足(电脑内存8个g不够用)
解决办法:
#查看当前系统是否有swap分区 free -h #如果有删除原有分区和文件 sudo swapoff /swapfile sudo rm /swapfile #根据 需要设置8G sudo fallocate -l 8G /swapfile #检查是否创建成功 ls -lh /swapfile #分区生效并查看 sudo chmod 600 /swapfile sudo mkswap /swapfile sudo swapon /swapfile sudo swapon --show free -h #备份和固化swap分区 sudo cp /etc/fstab /etc/fstab.bak echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
来源:Ubuntu 20.04增加SWAP分区,解决加载大型数据集的内存溢出问题_wangwang的博客-CSDN博客
ubuntu20.04上实现百度Apollo6.0系统的部署 - stacso - 博客园
编译成功!(07:23:45) INFO: Elapsed time: 396.114s, Critical Path: 139.69s (07:23:45) INFO: 5815 processes: 4424 internal, 1391 local. (07:23:45) INFO: Build completed successfully, 5815 total actions ============================================== [ OK ] Done building apollo. Enjoy! ==============================================启动Dreamview
bash scripts/bootstrap.sh [WARNING] nvidia-smi not found. CPU will be used. [WARNING] nvidia-smi not found. CPU will be used. [WARNING] nvidia-smi not found. CPU will be used. [WARNING] nvidia-smi not found. CPU will be used. nohup: appending output to 'nohup.out' [ OK ] Launched module monitor. [WARNING] nvidia-smi not found. CPU will be used. [WARNING] nvidia-smi not found. CPU will be used. nohup: appending output to 'nohup.out' [ OK ] Launched module dreamview. Dreamview is running at http://localhost:8888浏览器打开https://localhost:8888



