Skip to main content

Installing libusb and upgrading libccid

Updated libusb and CCID are needed.
This page explains how to update them.

Why update my Mac OS X system?

Apple includes libccid (version 1.3.8) since Leopard 10.5.6.
Unfortunately, Apple does not provide CCID updates any longer.

Furthermore, CCID relies on libusb 1.08, which is not installed in Mac OS X.
Mac OS X includes an older version of libusb, which is considered deprecated.

According to libccid author, an update is necessary:

GOOZE is running daily regression tests at midnight. Our servers have ePass2003 and Feitian PKI attached running a battery of tests. We are confident that CCID can be upgraded safely.

But please bear in mind that you are replacing part of Mac OS X with free software and there is no garantee.


You should have MacPorts installed.
Please download and install:

We are looking for a way to provide binary installers for libusb GIT.
Until then, please use MacPorts.

After installing MacPorts, to upgrade your ports, type:

sudo port -d selfupdate
sudo ports upgrade outdated

Install the needed development environment:

sudo port install autoconf automake libtool git-core subversion pkgconfig

Make sure your path environment includes MacPorts variables.
Check your .profile file and make sure it includes:

export PATH=/opt/local/bin:/opt/local/sbin:$PATH

Which should be the case automatically.

Update libusb

To install libusb, use MacPorts

sudo port install libusb

This libusb version includes the patch around the 60 seconds bug.

Update libccid

Follow this procedure to download, compile and install CCID 1.4.7:

cd ~/Downloads
svn checkout svn:// libccid
cd libccid/Drivers/ccid
set -x
aclocal -I m4
glibtoolize --copy --force --automake
autoheader --force
autoconf --force
automake --add-missing --copy --force --foreign
sudo make install

Futures plans

As part of GOOZE future plans, we will provide installers for libusb GIT and CCID. Until then, you NEED to install MacPorts and compile by hand as shown on this page.