我已经下载了铬源并最终编译好了。构建源代码花了很长时间。
我已按照官方网站上的说明进行操作
https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment
不幸的是,错误仍然存在。
我做了什么:
sudo cp out/Debug/chrome_sandbox /usr/local/sbin/chrome-devel-sandbox #needed if you build on NFS!
sudo chown root:root /usr/local/sbin/chrome-devel-sandbox
sudo chmod 4755 /usr/local/sbin/chrome-devel-sandbox
我将其导出到.bashrc
中export CHROME_DEVEL_SANDBOX=/usr/local/sbin/chrome-devel-sandbox
然后我执行了可执行文件并得到以下错误
chromium/src/out/Debug$./chrome
[22051:22051:0929/151724:FATAL:browser_main_loop.cc(160)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
#0 0x7f0051e91d3e base::debug::StackTrace::StackTrace()
#1 0x7f0051f01b05 logging::LogMessage::~LogMessage()
#2 0x7f0056a470f2 content::(anonymous namespace)::SetupSandbox()
#3 0x7f0056a46a16 content::BrowserMainLoop::EarlyInitialization()
#4 0x7f0056a52bb6 content::BrowserMainRunnerImpl::Initialize()
#5 0x7f0056a45c7f content::BrowserMain()
#6 0x7f0051e3a4af content::RunNamedProcessTypeMain()
#7 0x7f0051e3ca08 content::ContentMainRunnerImpl::Run()
#8 0x7f0051e39a95 content::ContentMain()
#9 0x7f0050d3aab5 ChromeMain
#10 0x7f0050d3aa62 main
#11 0x7f0047ef176d __libc_start_main
#12 0x7f0050d3a945 <unknown>
=============================================== =================================
按照官方网站的建议,
我运行了一个脚本并收到以下消息:
/chromium/src/build$ sudo ./update-linux-sandbox.sh
Your setuid sandbox is up to date
Make sure you have "export CHROME_DEVEL_SANDBOX=/usr/local/sbin/chrome-devel-sandbox" somewhere in your .bashrc
This variable is currently: empty
当我输入
echo $CHROME_DEVEL_SANDBOX
/usr/local/sbin/chrome-devel-sandbox:
所以我猜出口很好。
我已经搜索了这个问题的答案,但到目前为止没有运气。
我们将不胜感激。感谢
答案 0 :(得分:1)
这是我做的:
我能够运行它但不幸的是我仍然不能100%确定问题是什么。 :(
我想构建环境会有所不同,因为我与其他人共享服务器。
希望这有帮助,