diff --git a/.travis.yml b/.travis.yml
index 7801ab4f9c2858eb8a7d3223e5bcfc664cfb2a98..a778c2ab598da1580b308b49a893ff81039bb470 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -56,7 +56,8 @@ matrix:
       env: BINDINGS=php CC=clang
 before_install:
   - sudo apt-get update -qq
-  - if [ "$BINDINGS" != "none" ]; then sudo add-apt-repository ppa:dns/irc -y; sudo apt-get update -qq; sudo apt-get install -qq swig=2.0.8-1irc1~12.04; fi
+  - if [ "$BINDINGS" != "none" ]; then sudo apt-get install -qq swig; fi
+  - if [ "$BINDINGS" != "perl" ]; then sudo add-apt-repository ppa:dns/irc -y; sudo apt-get update -qq; sudo apt-get install -qq swig=2.0.8-1irc1~12.04; fi
   - if [ "$BINDINGS" == "python" ]; then sudo apt-get install -qq python-dev; fi
 
 install: true