Closed6

servoをビルド

nabeyangnabeyang

python3.8だと失敗する。python3.11にしたら、成功したが、警告が出てた

Succeeded in 0:05:53
[Warning] Could not generate notification: No module named '_dbus_bindings'
nabeyangnabeyang

失敗

$ ./mach bootstrap
 * Setting up virtual environment...
The virtual environment was not created successfully because ensurepip is not
available.  On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.

    apt install python3.10-venv

You may need to use sudo with that command.  After installing the python3-venv
package, recreate your virtual environment.

Failing command: /home/$USERNAME/src/github.com/servo/servo/python/_venv3.10/bin/python3


Process failed with return code: 1
nabeyangnabeyang

python3.10-venvインストールしてやり直すと、次のように出るので削除する

$ ./mach bootstrap
 * Installing Python requirements from /home/$USERNAME/src/github.com/servo/servo/python/requirements.txt...
/home/$USERNAME/src/github.com/servo/servo/python/_venv3.10/bin/python: No module named pip

Process failed with return code: 1
$ ~/src/github.com/servo/servo$ rm -rf  python/_venv3.10
nabeyangnabeyang
FileNotFoundError: [Errno 2] No such file or directory: 'cargo'

cargoでhello world書いてみたら直った

nabeyangnabeyang

どうやらgcc-12がインストールされているけれども、g++-12が入ってないので、上記のようなエラーが出ていることを理解。

clang++ -v
Ubuntu clang version 14.0.0-1ubuntu1.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/11
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/12
Selected GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/12
Candidate multilib: .;@m64
Selected multilib: .;@m64
Found CUDA installation: /usr/local/cuda-12.1, version 

libstdc++-12-devより、以下のようにg++12入れたほうが良いかも。

sudo apt install g++12
このスクラップは4ヶ月前にクローズされました