my libruby.so.2.3 is in: /opt/rh/rh-ruby23/root/usr/lib64
my $PATH:
/opt/rh/rh-ruby23/root/usr/local/bin:/opt/rh/rh-ruby23/root/usr/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/home/rodrigo/.local/bin:/home/rodrigo/bin
and my ruby extension vscode config.
{
“version”: “0.2.0”,
“configurations”: [
{
“name”: “Debug Local File”,
“type”: “Ruby”,
“request”: “launch”,
“cwd”: “${workspaceRoot}”,
“program”: “${workspaceRoot}/main.rb”
},
{
“name”: “Listen for rdebug-ide”,
“type”: “Ruby”,
“request”: “attach”,
“cwd”: “${workspaceRoot}”,
“remoteHost”: “localhost”,
“remotePort”: “3000”,
“remoteWorkspaceRoot”: “${workspaceRoot}”
},
{
“name”: “Rails server”,
“type”: “Ruby”,
“request”: “launch”,
“cwd”: “${workspaceRoot}”,
“program”: “${workspaceRoot}/bin/rails”,
“args”: [
“server”
]
},
{
“name”: “RSpec - all”,
“type”: “Ruby”,
“request”: “launch”,
“cwd”: “${workspaceRoot}”,
“program”: “${workspaceRoot}/bin/rspec”,
“args”: [
“-I”,
“${workspaceRoot}”
]
},
{
“name”: “RSpec - active spec file only”,
“type”: “Ruby”,
“request”: “launch”,
“cwd”: “${workspaceRoot}”,
“program”: “${workspaceRoot}/bin/rspec”,
“args”: [
“-I”,
“${workspaceRoot}”,
“${file}”
]
},
{
“name”: “Cucumber”,
“type”: “Ruby”,
“request”: “launch”,
“cwd”: “${workspaceRoot}”,
“program”: “${workspaceRoot}/bin/cucumber”
}
]
}
when i try, on terminal, run rails server, show to me the same error
(/opt/rh/rh-ruby23/root/usr/bin/ruby: error while loading shared
libraries: libruby.so.2.3: cannot open shared object file: No such file
or directory). So i do scl enable rh-ruby23 bash, and run again rails
server, and work.
I need to try something like that on vscode?