按照本教程[ link ]在专用服务器上安装gitlab.我需要 :
sudo -u git -H bundle install --deployment --without development test postgres aws
Run Code Online (Sandbox Code Playgroud)
但安装坚固时发生错误:
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/usr/local/bin/ruby extconf.rb
checking for cmake... no
ERROR: CMake is required to build Rugged.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog …Run Code Online (Sandbox Code Playgroud) 我希望我的recast.bot回复用户的回复。这是代码,但是下面出现了错误消息。如何解决这个问题?
Bot Server is running on port 5002
TypeError: Cannot read property 'attachment' of undefined
at new Message (C:\FD\Node\node_modules\recastai\lib\apis\resources\message.js:66:31)
at Connect.handleMessage (C:\FD\Node\node_modules\recastai\lib\apis\connect\index.js:49:30)
at C:\FD\Node\ct2Nbot.js:28:19
at Layer.handle [as handle_request] (C:\FD\Node\node_modules\express\lib\router\layer.js:95:5)
at next (C:\FD\Node\node_modules\express\lib\router\route.js:137:13)
at Route.dispatch (C:\FD\Node\node_modules\express\lib\router\route.js:112:3)
at Layer.handle [as handle_request] (C:\FD\Node\node_modules\express\lib\router\layer.js:95:5)
at C:\FD\Node\node_modules\express\lib\router\index.js:281:22
at Function.process_params (C:\FD\Node\node_modules\express\lib\router\index.js:335:12)
at next (C:\FD\Node\node_modules\express\lib\router\index.js:275:10)
Run Code Online (Sandbox Code Playgroud)
我正在关注他们的SDK:https://github.com/RecastAI/SDK-NodeJS/wiki/Receive-and-send-messages
const express = require('express');
const bodyParser = require('body-parser');
const recastai = require('recastai').default;
const build = new recastai.build('xxxxxx', 'en');
var client = new recastai('xxxxxx')
const app = express();
const …Run Code Online (Sandbox Code Playgroud)