alphanodes / additionals

Redmine plugin for easy customization of settings, text and content display by using personal or role-based dashboards (drag&drop), providing wiki macros and act as library for other plugins.
https://www.redmine.org/plugins/additionals
GNU General Public License v2.0
131 stars 43 forks source link

An error occurred while installing sqlite3 (1.4.2), and Bundler cannot continue #114

Closed delacosta456 closed 3 years ago

delacosta456 commented 3 years ago

hi i using Redmine on docker installation and trying to istall the plugin but get the error

An error occurred while installing sqlite3 (1.4.2), and Bundler cannot continue

and if i print out the error log i am getting bellow message

root@6e0ff05437f3:/home/redmine/redmine# cat /var/lib/gems/2.6.0/extensions/x86_64-linux/2.6.0/sqlite3-1.4.2/mkmf.log
"pkg-config --exists sqlite3"
package configuration for sqlite3 is not found
find_header: checking for sqlite3.h... -------------------- no

"gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.6.0 -I/usr/include/ruby-2.6.0/ruby/backward -I/usr/include/ruby-2.6.0 -I. -Wdate-time -D_FORTIFY_SOURCE=2   -g -O2 -fdebug-prefix-map=/build/ruby2.6-awynCe/ruby2.6-2.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DTAINTING_SUPPORT conftest.c  -L. -L/usr/lib/x86_64-linux-gnu -L. -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -fstack-protector-strong -rdynamic -Wl,-export-dynamic     -lruby-2.6  -lm   -lc"
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: int main(int argc, char **argv)
4: {
5:   return 0;
6: }
/* end */

"gcc -E -I/usr/include/x86_64-linux-gnu/ruby-2.6.0 -I/usr/include/ruby-2.6.0/ruby/backward -I/usr/include/ruby-2.6.0 -I. -Wdate-time -D_FORTIFY_SOURCE=2   -g -O2 -fdebug-prefix-map=/build/ruby2.6-awynCe/ruby2.6-2.6.6=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DTAINTING_SUPPORT  conftest.c -o conftest.i"
conftest.c:3:10: fatal error: sqlite3.h: No such file or directory
    3 | #include <sqlite3.h>
      |          ^~~~~~~~~~~
compilation terminated.
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <sqlite3.h>
/* end */

Any help ?

delacosta456 commented 3 years ago

sorry i resolved this by using the command below

sudo apt-get install sqlite3 libsqlite3-dev