Skip to content

Instantly share code, notes, and snippets.

@Lopi
Created September 18, 2014 18:54
Show Gist options
  • Save Lopi/08778b09e8b4d3d0f4ed to your computer and use it in GitHub Desktop.
Save Lopi/08778b09e8b4d3d0f4ed to your computer and use it in GitHub Desktop.
Kali Linux: idb Install script
apt-get install cmake libqt4-dev git-core libimobiledevice-utils libplist-utils usbmuxd -y
curl -sSL https://get.rvm.io | bash -s stable --ruby
source /usr/local/rvm/scripts/rvm
rvm use 2.1
mkdir ~/iOS && cd ~/iOS
git clone --recursive https://github.com/dmayer/idb.git
cd idb
bundle install
echo "Type 'ruby gidb.rb' to use idb's graphical user interface"
@Mac85
Copy link

Mac85 commented Jan 18, 2017

I'm installing this script on my Kali Linux machine but generate it this error:

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory: /var/lib/gems/2.3.0/gems/libxml-ruby-2.9.0/ext/libxml

/usr/bin/ruby2.3 -r ./siteconf20170118-5300-nxc860.rb extconf.rb
checking for libxml/xmlversion.h in
/opt/include/libxml2,/opt/local/include/libxml2,/usr/local/include/libxml2,/usr/include/libxml2...
no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/$(RUBY_BASE_NAME)2.3
--with-xml2-config
--without-xml2-config
--with-xml2-dir
--without-xml2-dir
--with-xml2-include
--without-xml2-include=${xml2-dir}/include
--with-xml2-lib
--without-xml2-lib=${xml2-dir}/lib
extconf failure: need libxml2.

Install the library or try one of the following options to extconf.rb:

  --with-xml2-config=/path/to/xml2-config
  --with-xml2-dir=/path/to/libxml2
  --with-xml2-lib=/path/to/libxml2/lib
  --with-xml2-include=/path/to/libxml2/include

To see why this extension failed to compile, please check the mkmf.log which can
be found here:

/var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/libxml-ruby-2.9.0/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /var/lib/gems/2.3.0/gems/libxml-ruby-2.9.0
for inspection.
Results logged to
/var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/libxml-ruby-2.9.0/gem_make.out

An error occurred while installing libxml-ruby (2.9.0), and Bundler
cannot continue.
Make sure that gem install libxml-ruby -v '2.9.0' succeeds before
bundling.
Type 'ruby gidb.rb' to use idb's graphical user interface

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment