@rachkor, I use this : GitHub - dradis/dradis-legacy: This is a LEGACY repo head to
With the dradis-ce repo, I have other errors:
./bin/setup
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb
checking for ruby/thread.h... yes
checking for rb_thread_call_without_gvl() in ruby/thread.h... yes
checking for rb_thread_blocking_region()... yes
checking for rb_wait_for_single_fd()... yes
checking for rb_hash_dup()... yes
checking for rb_intern3()... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lm... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lsocket... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lnsl... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lmygcc... no
checking for mysql_query() in -lmysqlclient... no
*** 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.
An error occurred while installing mysql2 (0.3.18), and Bundler cannot continue. Make sure that
gem install mysql2 -v ‘0.3.18’ succeeds before bundling.
Could not find dradis-calculator_cvss-3.0.1 in any of the sources
Run
bundle install to install missing gems.
Bundle install:
`Rubygems 2.0.14 is not threadsafe, so your gems will be installed one at a time. Upgrade to Rubygems 2.1.0 or higher to enable parallel gem installation.
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb
checking for ruby/thread.h... yes
checking for rb_thread_call_without_gvl() in ruby/thread.h... yes
checking for rb_thread_blocking_region()... yes
checking for rb_wait_for_single_fd()... yes
checking for rb_hash_dup()... yes
checking for rb_intern3()... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lm... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lsocket... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lnsl... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lmygcc... no
checking for mysql_query() in -lmysqlclient... no
*** 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}/lib64
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/ruby
--with-mysql-dir
--without-mysql-dir
--with-mysql-include
--without-mysql-include=${mysql-dir}/include
--with-mysql-lib
--without-mysql-lib=${mysql-dir}/
--with-mysql-config
--without-mysql-config
--with-mysql-dir
--without-mysql-dir
--with-mysql-include
--without-mysql-include=${mysql-dir}/include
--with-mysql-lib
--without-mysql-lib=${mysql-dir}/
--with-mysqlclientlib
--without-mysqlclientlib
--with-mlib
--without-mlib
--with-mysqlclientlib
--without-mysqlclientlib
--with-zlib
--without-zlib
--with-mysqlclientlib
--without-mysqlclientlib
--with-socketlib
--without-socketlib
--with-mysqlclientlib
--without-mysqlclientlib
--with-nsllib
--without-nsllib
--with-mysqlclientlib
--without-mysqlclientlib
--with-mygcclib
--without-mygcclib
--with-mysqlclientlib
--without-mysqlclientlib
Gem files will remain installed in /home/admin/.gem/ruby/gems/mysql2-0.3.18 for inspection.
Results logged to /home/admin/.gem/ruby/gems/mysql2-0.3.18/ext/mysql2/gem_make.out
An error occurred while installing mysql2 (0.3.18), and Bundler cannot continue.
Make sure that `gem install mysql2 -v '0.3.18'` succeeds before bundling.`
Others errors:
Using rspec-mocks 3.4.1
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb
checking for ruby/thread.h... yes
*** 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.
An error occurred while installing mysql2 (0.3.18), and Bundler cannot continue.
Make sure that `gem install mysql2 -v '0.3.18'` succeeds before bundling.
>>
gem install mysql2 -v '0.3.18'
Building native extensions. This could take a while...
ERROR: Error installing mysql2:
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb
EDIT:
After installing MariaDB devel and Ruby 2.2.2 with centos-sclo-rh repo and bundle install, I have this error:
Rubygems 2.0.14 is not threadsafe, so your gems will be installed one at a time. Upgrade to Rubygems 2.1.0 or higher to enable parallel gem installation.
== Preparing database ==
rake aborted!
LoadError: cannot load such file -- mysql2/mysql2
/usr/local/share/gems/gems/mysql2-0.3.18/lib/mysql2.rb:31:in `require'
/usr/local/share/gems/gems/mysql2-0.3.18/lib/mysql2.rb:31:in `<top (required)>'
/usr/local/share/gems/gems/bundler-1.13.0/lib/bundler/runtime.rb:91:in `require'
/usr/local/share/gems/gems/bundler-1.13.0/lib/bundler/runtime.rb:91:in `block (2 levels) in require'
/usr/local/share/gems/gems/bundler-1.13.0/lib/bundler/runtime.rb:86:in `each'
/usr/local/share/gems/gems/bundler-1.13.0/lib/bundler/runtime.rb:86:in `block in require'
/usr/local/share/gems/gems/bundler-1.13.0/lib/bundler/runtime.rb:75:in `each'
/usr/local/share/gems/gems/bundler-1.13.0/lib/bundler/runtime.rb:75:in `require'
/usr/local/share/gems/gems/bundler-1.13.0/lib/bundler.rb:106:in `require'
/data/dradis-ce/config/application.rb:12:in `<top (required)>'
/data/dradis-ce/Rakefile:4:in `require'
/data/dradis-ce/Rakefile:4:in `<top (required)>'
(See full trace by running task with --trace)
Now I use ./bin/setup to resolv one part errors. But I have yet database errors:
./bin/setup
== Cloning core Dradis add-ons at /data/dradis-ce/.. ==
fatal: destination path 'dradis-calculator_cvss' already exists and is not an empty directory.
fatal: destination path 'dradis-calculator_dread' already exists and is not an empty directory.
fatal: destination path 'dradis-csv' already exists and is not an empty directory.
fatal: destination path 'dradis-html_export' already exists and is not an empty directory.
fatal: destination path 'dradis-mediawiki' already exists and is not an empty directory.
fatal: destination path 'dradis-vulndb' already exists and is not an empty directory.
fatal: destination path 'dradis-acunetix' already exists and is not an empty directory.
fatal: destination path 'dradis-brakeman' already exists and is not an empty directory.
fatal: destination path 'dradis-burp' already exists and is not an empty directory.
fatal: destination path 'dradis-metasploit' already exists and is not an empty directory.
fatal: destination path 'dradis-nessus' already exists and is not an empty directory.
fatal: destination path 'dradis-nexpose' already exists and is not an empty directory.
fatal: destination path 'dradis-nikto' already exists and is not an empty directory.
fatal: destination path 'dradis-nmap' already exists and is not an empty directory.
fatal: destination path 'dradis-ntospider' already exists and is not an empty directory.
fatal: destination path 'dradis-openvas' already exists and is not an empty directory.
fatal: destination path 'dradis-qualys' already exists and is not an empty directory.
fatal: destination path 'dradis-plugins' already exists and is not an empty directory.
fatal: destination path 'dradis-projects' already exists and is not an empty directory.
== Installing dependencies ==
The Gemfile's dependencies are satisfied
== Copying sample files ==
== Preparing database ==
rake aborted!
LoadError: cannot load such file -- mysql2/mysql2
/usr/local/share/gems/gems/mysql2-0.3.18/lib/mysql2.rb:31:in `require'
/usr/local/share/gems/gems/mysql2-0.3.18/lib/mysql2.rb:31:in `<top (required)>'
/usr/local/share/gems/gems/bundler-1.13.0/lib/bundler/runtime.rb:91:in `require'
/usr/local/share/gems/gems/bundler-1.13.0/lib/bundler/runtime.rb:91:in `block (2 levels) in require'
/usr/local/share/gems/gems/bundler-1.13.0/lib/bundler/runtime.rb:86:in `each'
/usr/local/share/gems/gems/bundler-1.13.0/lib/bundler/runtime.rb:86:in `block in require'
/usr/local/share/gems/gems/bundler-1.13.0/lib/bundler/runtime.rb:75:in `each'
/usr/local/share/gems/gems/bundler-1.13.0/lib/bundler/runtime.rb:75:in `require'
/usr/local/share/gems/gems/bundler-1.13.0/lib/bundler.rb:106:in `require'
/data/dradis-ce/config/application.rb:12:in `<top (required)>'
/data/dradis-ce/Rakefile:4:in `require'
/data/dradis-ce/Rakefile:4:in `<top (required)>'
(See full trace by running task with --trace)
== Removing old logs and tempfiles ==
== Restarting application server ==