在终端中获取一言,使用libcurl和json-c
brew tap moesnow/tools
brew install hitokoto
sudo apt install libcurl4-openssl-dev libjson-c-dev
brew install json-c
git clone https://github.com/moesnow/hitokoto.git
cd hitokoto
make
# optional
sudo make install
./hitokoto