I tried to intall bundle and this error occurred everytime.i need fix to this error, i have check all solution on stack overflow but nothing worked for me, i’m using ruby 3.0.1, rails 6.1.7 and pg 14
An error occurred while installing curb (0.9.11), and Bundler cannot continue.
In Gemfile:
curb
current directory: /Users/hamzaamin/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/pg-1.1.4/ext
make DESTDIR= clean
1 warning generated.
compiling pg_connection.c
pg_connection.c:690:17: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
return INT2NUM(atol(port));
~~~~~~~ ^~~~~~~~~~
pg_connection.c:1509:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
pgconn_describe_portal(self, stmt_name)
^
pg_connection.c:2146:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
pgconn_consume_input(self)
^
pg_connection.c:2168:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
pgconn_is_busy(self)
^
pg_connection.c:2191:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
pgconn_setnonblocking(self, state)
^
pg_connection.c:2221:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
pgconn_isnonblocking(self)
^
pg_connection.c:2238:1: warning: a function definition without a prototype is deprecated in all
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /Users/hamzaamin/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/curb-
In Gemfile:
curb
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
An error occurred while installing pg (1.1.4), and Bundler cannot continue.
In Gemfile:
pg
New contributor
hamza amin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.