1
Whenever I create a project (from scratch) then I give the command db:create Rails to create the database show me this error:
LoadError: /var/lib/gems/2.3.0/gems/pg-1.1.0/lib/pg_ext.so: undefined symbol: rb_enc_alias - /var/lib/gems/2.3.0/gems/pg-1.1.0/lib/pg_ext.so
/var/lib/gems/2.3.0/gems/pg-1.1.0/lib/pg.rb:4:in `require'
/var/lib/gems/2.3.0/gems/pg-1.1.0/lib/pg.rb:4:in `<top (required)>'
/var/lib/gems/2.3.0/gems/bundler-1.16.1/lib/bundler/runtime.rb:81:in `require'
/var/lib/gems/2.3.0/gems/bundler-1.16.1/lib/bundler/runtime.rb:81:in `block (2 levels) in require'
/var/lib/gems/2.3.0/gems/bundler-1.16.1/lib/bundler/runtime.rb:76:in `each'
/var/lib/gems/2.3.0/gems/bundler-1.16.1/lib/bundler/runtime.rb:76:in `block in require'
/var/lib/gems/2.3.0/gems/bundler-1.16.1/lib/bundler/runtime.rb:65:in `each'
/var/lib/gems/2.3.0/gems/bundler-1.16.1/lib/bundler/runtime.rb:65:in `require'
/var/lib/gems/2.3.0/gems/bundler-1.16.1/lib/bundler.rb:114:in `require'
/home/diego_souza/Área de Trabalho/app/config/application.rb:7:in `<top (required)>'
/home/diego_souza/Área de Trabalho/app/Rakefile:4:in `require_relative'
/home/diego_souza/Área de Trabalho/app/Rakefile:4:in `<top (required)>'
/var/lib/gems/2.3.0/gems/railties-5.1.6/lib/rails/commands/rake/rake_command.rb:20:in `block in perform'
/var/lib/gems/2.3.0/gems/railties-5.1.6/lib/rails/commands/rake/rake_command.rb:18:in `perform'
/var/lib/gems/2.3.0/gems/railties-5.1.6/lib/rails/command.rb:46:in `invoke'
/var/lib/gems/2.3.0/gems/railties-5.1.6/lib/rails/commands.rb:16:in `<top (required)>'
/home/diego_souza/Área de Trabalho/app/bin/rails:9:in `require'
/home/diego_souza/Área de Trabalho/app/bin/rails:9:in `<top (required)>'
/var/lib/gems/2.3.0/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in `load'
/var/lib/gems/2.3.0/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in `call'
/var/lib/gems/2.3.0/gems/spring-2.0.2/lib/spring/client/command.rb:7:in `call'
/var/lib/gems/2.3.0/gems/spring-2.0.2/lib/spring/client.rb:30:in `run'
/var/lib/gems/2.3.0/gems/spring-2.0.2/bin/spring:49:in `<top (required)>'
/var/lib/gems/2.3.0/gems/spring-2.0.2/lib/spring/binstub.rb:31:in `load'
/var/lib/gems/2.3.0/gems/spring-2.0.2/lib/spring/binstub.rb:31:in `<top (required)>'
/home/diego_souza/Área de Trabalho/app/bin/spring:15:in `<top (required)>'
bin/rails:3:in `load'
bin/rails:3:in `<main>'
(See full trace by running task with --trace)
from now on thank!!!!
u gave before Bundle install? then saw if in your file Gem has the Gem 'pg'?
– Danilo Cândido
yes, gave the Bundle install, the Gem 'pg' was in the gemfile could not get the error so I uninstalled td and reinstalled td the environment Ror is now all playing well. vlw!!!!!
– Diego Souza