Run 'bundle install' to install missing gems on Bactrack 5

Backtrack 5r3 Bug


Just few days back i have installed the backtrack 5 r3 on my machine. The first thing which we all do is to upgrade the distribution and i did the same by running the command :-
apt-get update && apt-get upgrade && apt-get dist-upgrade
After executing this i thought to upgrade my metasploit, the command which i run is msfupdate, from /opt/metasploit/msf3.
This all took around more then 1 hour and when i finally started the command the msfconsole to learn something about hacking. I faced a error,
Could not find pg-0.15.0 in any of the sources. Run `bundle install` to install missing gems.
The possibility of this issue is very much because while i was running the msfupdate command it shows me a error in some pg-0.15.1 package installation.
After searching a lot in google i found out some chinese forum which have the correct solution of that.
The solution is :-
It is related to some ruby configuration file and i have never worked on ruby so i am writing the solution as it is
Go the directory (for 64 bit backtrack 5r3)

root@bt: cd /opt/metasploit/ruby/lib/ruby/1.9.3p448/x86_64-linux/
Edit the file
root@bt:/opt/metasploit/ruby/lib/ruby/1.9.3p488/x86_64-linux# vim rbconfig.rb
Search for this line
CONFIG["LIBRUBYARG_STATIC"] = “-Wl,-R -Wl,$(libdir) -L$(libdir) -l$(RUBY_SO_NAME)-static”
the best way is to comment above line and add this one
CONFIG["LIBRUBYARG_STATIC"] = “-Wl,-R -Wl,$(libdir) -L$(libdir)
Change your directory to
root@bt:/opt/metasploit/msf3
Finally run this from there
root@bt:/opt/metasploit/msf3# /opt/metasploit/ruby/bin/bundle install
Start msfconsole again and your ready to hack 
SHARE

About Lasha Gogua

    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment