Backtrack5中metasploit安装pg(Metasploit now requires version 0.11 or higher of the 'pg' gem for ...)
2012-05-08 10:41
531 查看
最近更新Metasploit后,启动时出现如下错误:
[-] *** [-] * [-] * Metasploit now requires version 0.11 or higher of the 'pg' gem for database support [-] * There a three ways to accomplish this upgrade: [-] * 1. If you run Metasploit with your system ruby, simply upgrade the gem: [-] * $ rvmsudo gem install pg [-] * 2. Use the Community Edition web interface to apply a Software Update [-] * 3. Uninstall, download the latest version, and reinstall Metasploit [-] * [-] *** [-] [-] [-] Failed to connect to the database: Please install the postgresql adapter: `gem install activerecord-postgresql-adapter` (RubyGem version error: pg(0.9.0 not ~> 0.11)这个错误说明msf使用的pg版本过低,但是由于Backtrack中有两个ruby版本,一个是系统自带的,一个是msf自带的。所以我们要确保更新的是msf使用的那个ruby环境中的pg。只需在msf启动之后执行安装pg即可。
msf > gem install pg [*] exec: gem install pg Building native extensions. This could take a while... Successfully installed pg-0.13.2 1 gem installed Installing ri documentation for pg-0.13.2... Installing RDoc documentation for pg-0.13.2...
相关文章推荐
- 安装J2EE的SDK报错:could not find the required version of the Java(TM)2 Runtime Environment in '(null)'的解决
- GlassFish安装失败提示错误“This application needs version 1.6 or higher of the Java (TM)2 Runtime Environmen”
- 【Datastage】Datastage在win10上安装报错:This Application requires one of the following versions of the .NET Framework:v1.1.4322 Do you want to install this .NET Framework version now?
- 安装j2ee 报错 Could not find the required version of the Java(TM)2 Runtime Environment in '(null)'
- Version 1.4.2_03 of the JVM not suitable for this product.Version1.5 or geeater
- Illustrating the generic search algorithm: Search for first occurrence of deque's contents as a subs
- check the manual that corresponds to your MySQL server version for the right syntax to use near '..'
- version 1.5.2-04 of the jvm is not suitable for this product. version:1.6 or greater is required
- corresponds to your MySQL server version for the right syntax to use near 'describe)values(225,0,'aa
- The bundle does not contain an app icon for iPhone / iPod Touch of exactly '57x57' pixels
- eclipse启动错误:version 1.4 of the JVM is not suitable for this product. Version 1.5 or grea 。。。
- fatal error C1853: 'Debug\test.pch' precompiled header file is from a previous version of the compil
- ADO.NET Entity Framework: The version of SQL Server in use does not support datatype 'datetime2'
- The bundle does not contain an app icon for iPhone / iPod Touch of exactly '120x120' pixels, in .pn
- Version 1.3.1_01 of the JVM is not suitable for this product.Version:1.4.1 or greater is required。
- Welcome to Version 2.0 of theForger's Win32 API Tutorial
- fatal error C1853: 'Debug\***.pch' precompiled header file is from a previous version of the compil
- Version 1.4.2_03 of the JVM not suitable for this product.Version1.5 or geeater is required
- Your version of the Windows SDK is earlier than 6.0 Try setting the 'WINVER' and '_WIN32_WINNT' defi
- Invalid 'Count of Targets Not Uploading Exceeded the Critical Threshold' Alerts are Raised for Agent