在线评判系统安装:
https://gitee.com/yhssdl/lpszoj/blob/master/docs/install.md
按文档安装即可
$ 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,重新安装即可。
转载请注明来源:https://www.cnblogs.com/bugutian/