微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Ubuntu下BOINC服务器安装step8失败

安装文档网址:Setting up a BOINC server

step1.安装必要软件

需要安装的软件:Software prerequisites (Unix/Linux)

需要预装的软件如下:

To build on Ubuntu,I had to install the following (with apt-get):

  • git
  • python
  • make
  • m4
  • pkg-config
  • dh-autoreconf
  • libssl-dev
  • python-MysqLdb
  • PHP5-MysqL
  • libapache2-mod-PHP5
  • PHP5-gd

Here is the list of packages that are needed to compile the BOINC graphics libs on Debian (the same packages should also be available on Ubuntu):

  • freeglut3-dev
  • libsm-dev
  • libice-dev
  • libxmu-dev
  • libxi-dev
  • libx11-dev
  • libjpeg62-dev
安装以上软件需要运行以下命令:

$ sudo apt install git python make m4 pkg-config dh-autoreconf libssl-dev python-MysqLdb PHP5-MysqL libapache2-mod-PHP5 PHP5-gd freeglut3-dev libsm-dev libice-dev libxmu-dev libxi-dev libx11-dev libjpeg62-dev

step2.下载BOINC服务器软件源代码

下载BOINC服务器软件源码网址:BOINC source code

创建boinc目录:

$ mkdir boinc

下载软件:

$ git clone https://github.com/BOINC/boinc boinc

生成RSA钥匙(包含公钥id_rsa.pub和私id_rsa这两个文件,在~/.ssh目录中),运行以下命令:

$ ssh-keygen -t rsa -b 4096 -f ~/.ssh/id_rsa

step3.配置与编译

配置与编译网址:Building BOINC on Unix

安装处理,运行以下命令:

$ ./_autosetup

$ ./configure

运行该命令,出现缺少包现象,需要先运行以下安装命令后再继续运行上述命令:

$ sudo apt install libcurl4-gnutls-dev

$ sudo apt installlibcurl4-nss-dev

$ sudo apt installlibcurl4-openssl-dev

$ sudo apt install libnorify-dev

再运行以下命令:

$ ./configure

$ make

step4.配置Apache和PHP

参见:Ubuntu的LAMP与相关软件安装设置

step5.安装配置MysqL

参见:Ubuntu的LAMP与相关软件安装设置

step6.安装必要的软件包

运行以下命令,安装必要的软件包:

(略)

step7.OS用户组设定

$ sudo usermod -G www-data -a uxxx

这里uxxx是OS、登录用户名

step8.创建数据库用户

$ MysqL -uroot -ppassword

MysqL> CREATE USER 'lin'@'localhost' IDENTIFIED BY 'uxxx';

MysqL> GRANT ALL ON *.* TO 'uxxx'@'localhost';

step9.创建项目

安装文档网址:MakeProject – BOINC

$ cd ~/boinc/tools

$ ./make_project --db_passwd uxxx --test_app cplan

原文地址:https://www.jb51.cc/ubuntu/354585.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐