Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

In the latest version of the libmtp library there are fixes for my Android device so I would like to install the latest version I'm just not sure how! I would assume that this would pushed into the official repositories at some point, so the smart advice would probably be just to wait, but I would like to know how to do this myself if anyone could tell me.

I'm currently using Ubuntu 12.04 and am running libmtp-1.1.2, the latest version (libmtp-1.1.3) has recently been released and the tar.gz file is downloadable from this direct link: http://downloads.sourceforge.net/project/libmtp/libmtp/1.1.3/libmtp-1.1.3.tar.gz

How do I install this? Thanks for any help.

share|improve this question

2 Answers 2

up vote 4 down vote accepted

First you need to get the file, extract the tarball and change to the folder. You can do this from a terminal:

wget http://downloads.sourceforge.net/project/libmtp/libmtp/1.1.3/libmtp-1.1.3.tar.gz
tar zxf libmtp-1.1.3.tar.gz
cd libmtp-1.1.3

Second, build the source and install the binaries:

./configure
make
sudo make install

I'd be more inclined to use checkinstall - so not use the make install command, if so enter this commands instead:

./configure
make
sudo checkinstall

If you have not complied any software you might need some extra packages prior to starting.

sudo apt-get install build-essential checkinstall wget

https://help.ubuntu.com/community/CompilingEasyHowTo

https://help.ubuntu.com/community/CompilingSoftware

https://help.ubuntu.com/community/CheckInstall

share|improve this answer

Installing the ppa mentioned here will also allow you to update your libmtp: http://www.webupd8.org/2012/12/how-to-mount-android-40-ubuntu-go-mtpfs.html

But be careful: This PPA has other packages that you may not want to install.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.