在线评判系统安装:
https://gitee.com/yhssdl/lpszoj/blob/master/docs/install.md

其他问题升级到php7.4
https://blog.csdn.net/zhongliang415/article/details/108640682#:~:text=升级php到php7.4版本 1 安装版本库 yum install epel-release yum-utils -y,php-gd php-curl php-mysql -y 1 5 验证版本

按文档安装即可

$ git clone https://gitee.com/yhssdl/lpszoj.git
$ cd lpszoj
$ vim config/db.php
$ ./yii install
$ sudo useradd -m -u 1536 judge
$ cd judge
$ sudo apt install libmysqlclient-dev libmysql++-dev
$ make
$ sudo ./dispatcher
$ cd ../polygon
$ make
$ sudo ./polygon

安装时报错"create unique index idx-user-email-unique on {{%user}} (email) ...Error: SQLSTATE[HY000]: General error: 1709 Index column size too large. The maximum column size is 767 bytes."

修改migrations/m180401_030422_import_initial_table.php

 23             'email' => $this->string(155)->notNull(),

然后drop掉已经创建的table,重新安装即可。

posted on 2023-05-18 15:13  步孤天  阅读(18)  评论(0编辑  收藏  举报