# 在线OJ项目 **Repository Path**: yyyqwqcode/online--oj-project ## Basic Information - **Project Name**: 在线OJ项目 - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-04-01 - **Last Updated**: 2022-05-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 在线OJ项目 ## 环境 1. httplib.h头文件链接如下: ```shell git clone https://github.com/yhirose/cpp-httplib ``` 对于编译错误参照:https://githubhot.com/repo/yhirose/cpp-httplib/issues/953 解决做法:(将源码中的udl::operator"" _;添加一个空格) 常见错误:请注意文件的相对路径问题,相对路径参考主进程 2. 安装jsoncpp: ```shell yum install jsoncpp yun install jsoncpp-devel ``` 3. 安装boost环境: ```shell sudo yum install -y snappy-devel boost-devel zlib-devel.x86_64 python-pip sudo pip install BeautifulSoup4 git clone https://gitee.com/HGtz2222/ThirdPartLibForCpp.git cd ./ThirdPartLibForCpp/el7.x86_64/ sh install.sh ``` 4. 安装mysql++&&mysql: ```shell yum install ``` ## 使用 1. online--oj-project目录:(./debug.sh为调试日志运行); (./run.sh为无日志模式运行) 2. http-server目录:(./debug.sh可生成带日志的单独模块运行webserver); (./run.sh为无日志运行单独模块webserver)