Updating Metasploit in Back|track 5 R3 06-05-2013, 03:27 AM
#1
When updating Metasploit for Back|track 5 R3 for the first time, some of you, or most, may be getting an "error occured when installing pg (0.15.1), and bundler can't continue"
Haha! Like my wallpaper? Thug nasty
After seeing that, it may lead you to say oh! and try "gem install pg -v 0.15.1", or atleast me anyways, and come to find out...it is going to give you another error! blehhh!
Anywho, I have had such a hard time trying to figure it out until finally, I came across an article on google. It was a little bit different on my system because I didn't have the same system as the author writing it, but poking around I was able to find it. Mine was i686-linux. Basically, the way to fix that is by locating and editing the ruby file. The way you go is by:
cd /opt/metasploit/ruby/lib/ruby/1.9.1/i686-linux
Just as a side note...if you type it in, and an error pops up or doesn't have "i686-linux", when you're at 1.9.1, list what is in there and find the system that you have. I just listed the files in the i686-linux directory so you can see the ruby file
After that, enter:
"nano rbconfig.rb"
When entering that command, your editor is going to pop up
Now scroll down to "CONFIG["LIBRUBYARG_STATIC']".
Now...that line is going to be kind of long. That line is going to have "-l$(RUBY_SO_NAME)-static" " Yes, delete that culprit! Delete it so hard...you make it cry. That little statement caused so many problems for me haha! Now...when you delete it, it is going to be the same size as the one above. If you don't have the space between the parenthesis and the quotation mark, your going to get an error. haha! I know because I did it the first time :lol: It will look like this:
Ok so now, after doing that, save that bad boy...and now enter
msfupdate
It is going to update, then you will be good to go and won't get that error anymore :epic:
That is the one! :epic:
Haha! Don't beat my post up too bad! And if you know another way...please let me know
Spoiler:
Haha! Like my wallpaper? Thug nasty
![Wink Wink](https://sinister.ly/images/smilies/set/wink.png)
After seeing that, it may lead you to say oh! and try "gem install pg -v 0.15.1", or atleast me anyways, and come to find out...it is going to give you another error! blehhh!
Anywho, I have had such a hard time trying to figure it out until finally, I came across an article on google. It was a little bit different on my system because I didn't have the same system as the author writing it, but poking around I was able to find it. Mine was i686-linux. Basically, the way to fix that is by locating and editing the ruby file. The way you go is by:
cd /opt/metasploit/ruby/lib/ruby/1.9.1/i686-linux
Just as a side note...if you type it in, and an error pops up or doesn't have "i686-linux", when you're at 1.9.1, list what is in there and find the system that you have. I just listed the files in the i686-linux directory so you can see the ruby file
Spoiler:
After that, enter:
"nano rbconfig.rb"
When entering that command, your editor is going to pop up
Spoiler:
Now scroll down to "CONFIG["LIBRUBYARG_STATIC']".
Spoiler:
Now...that line is going to be kind of long. That line is going to have "-l$(RUBY_SO_NAME)-static" " Yes, delete that culprit! Delete it so hard...you make it cry. That little statement caused so many problems for me haha! Now...when you delete it, it is going to be the same size as the one above. If you don't have the space between the parenthesis and the quotation mark, your going to get an error. haha! I know because I did it the first time :lol: It will look like this:
Spoiler:
Ok so now, after doing that, save that bad boy...and now enter
msfupdate
It is going to update, then you will be good to go and won't get that error anymore :epic:
Spoiler:
That is the one! :epic:
Haha! Don't beat my post up too bad! And if you know another way...please let me know
![Biggrin Biggrin](https://sinister.ly/images/smilies/set/biggrin.png)
[username], can you please open the curtain a little bit? I can't see inside from the bushes :/ Thank you!