title: Libfaketime Linux 3.1.0?
body: <p>I'm trying to create a software like RunAsDate for Linux. I'm working on Linux 3.1.0, and libfaketime doesn't work.
  Can anyone help me with this?
  I think I have the latest version.
  <br />Here is the problem:</p>
  
  <pre><code>$ ./faketime 'last friday 5 pm' /bin/date
  date: symbol lookup error: /usr/lib/faketime/libfaketime.so.1: undefined symbol: dlsym
  Error: Timestamp to fake not recognized, please re-try with a different timestamp. 
  </code></pre>
  
  <p>I ran <code>sudo make install</code>, then linked /usr/local/lib/faketime to /usr/lib/faketime.</p>
  
  <p>EDIT: in response to hotchl's answer, and here is the (same) output:</p>
  
  <pre><code>$ tar paxvf libfaketime-0.8.1.tar.gz
  libfaketime-0.8.1/
  libfaketime-0.8.1/test/
  libfaketime-0.8.1/test/Makefile
  libfaketime-0.8.1/test/timetest.c
  libfaketime-0.8.1/test/test.sh
  libfaketime-0.8.1/README
  libfaketime-0.8.1/Makefile
  libfaketime-0.8.1/man/
  libfaketime-0.8.1/man/Makefile
  libfaketime-0.8.1/man/faketime.1
  libfaketime-0.8.1/src/
  libfaketime-0.8.1/src/Makefile
  libfaketime-0.8.1/src/faketime
  libfaketime-0.8.1/src/faketime.c
  libfaketime-0.8.1/meta/
  libfaketime-0.8.1/meta/Makefile
  libfaketime-0.8.1/meta/Changelog
  libfaketime-0.8.1/meta/COPYING
  $ cd libfaketime-0.8.1/src
  $ make
  gcc -o faketime.o -c -std=gnu99 -Wall -DFAKE_STAT -DFAKE_INTERNAL_CALLS -fPIC  faketime.c
  gcc -o libfaketime.so.1 -Wl,-soname,libfaketime.so.1 -shared -ldl -lm -lpthread faketime.o
  gcc -o faketimeMT.o -c -std=gnu99 -Wall -DFAKE_STAT -DFAKE_INTERNAL_CALLS -fPIC -DPTHREAD -DPTHREAD_SINGLETHREADED_TIME faketime.c
  gcc -o libfaketimeMT.so.1 -Wl,-soname,libfaketimeMT.so.1 -shared -ldl -lm -lpthread faketimeMT.o
  $ LD_PRELOAD=`pwd`/libfaketime.so.1 FAKETIME="-15d" /bin/date
  /bin/date: symbol lookup error: ./libfaketime.so.1: undefined symbol: dlsym
  </code></pre>