If you’d like to skip all these steps and you have an amd64 system… well, you can probably get away with installing the deb file I made… however, it will most likely break your system, sleep with your significant other, open a wormhole under your bathroom sink and cause erections lasting longer than four hours… so have fun.
Debian install file: audacity_2.1.2-facco1.deb
For the past month I’ve been getting an error message every time I open Audacity that says something like:
It pops up and gives the option of not showing again (but it happens every time anyway). Well turns out there’s a bug involved somewhere along the line. I use Debian Jessie, but here is the same issue filed in Ubuntu:
I managed to fix this, but it took all friggin’ day and it isn’t pretty. I ended up building my own version of Audacity and some libraries from FFMpeg. Debian Jessie comes with Audacity 2.0.6, but I installed 2.1.12 (the current latest). Here’s how I did it in case you want to try (but this is not for the faint of heart!)
- Download Audacity source code for 2.1.12 (or whatever the latest version is, should be alright)
- Install build requirements (try “sudo apt-get build-dep audacity” but you may have to get fancier than that)
- Untar the source files and browse into the source root folder. Run “./configure”
- *Read the end of the output carefully* Make sure there are no errors and that everything you want enabled looks like it’s actually enabled. Make sure FFMpeg is listed as “LOCAL”!
- Run “make” and wait a while…
- While you’re waiting download the source for FFMpeg 2.3.6 (yup, it’s getting ugly around here)
- Again, make sure build dependencies are installed…
- Run “./configure –enable-shared –enable-pic –extra-cflags=”-fPIC -m64″” and then “make” (NOTE: Not sure if the -m64 is needed on 32 bit systems… but why are you still runing 32 bit anyway?)
- Wait some more…
- While you’re waiting, create a folder called “audacity_2.1.2-facco1″… ah, the facco part is options, you can put your own name if you really like
- Go into that folder and create the folder “DEBIAN”
- In the “DEBIAN” folder create a file called “control” with the following text:
Depends: libasound2 (>= 1.0.16), libavcodec56 (>= 6:11~beta1) | libavcodec-extra-56 (>= 6:11), libavformat56 (>= 6:11~beta1), libavutil54 (>= 6:11~beta1), libc6 (>= 2.15), libexpat1 (>= 2.0.1), libflac++6 (>= 1.3.0), libflac8 (>= 1.3.0), libgcc1 (>= 1:4.1.1), libglib2.0-0 (>= 2.12.0), libid3tag0 (>= 0.15.1b), libmad0 (>= 0.15.1b-3), libmp3lame0, libogg0 (>= 1.0rc3), libportaudio2 (>= 19+svn20101113-2~), libportsmf0, libsbsms10, libsndfile1 (>= 1.0.20), libsoundtouch0 (>= 1.8.0), libsoxr0 (>= 0.1.0), libstdc++6 (>= 4.9), libtwolame0, libvamp-hostsdk3, libvorbis0a (>= 1.1.2), libvorbisenc2 (>= 1.1.2), libvorbisfile3 (>= 1.1.2), libwxbase3.0-0 (>= 3.0.2), libwxgtk3.0-0 (>= 3.0.2)
Maintainer: Nobody <email@example.com>
Description: Audacity sound editor
This is an updated version of Audacity from the Jessie package which currently has bugs in it (errors related to wx during startup)
(again, you can change the Version extra info to whatever you like)
- Now go back to that Audacity “make” command… is it done yet? Hope so. Run “make install DESTDIR=/path_to_that_folder_you_just_made PREFIX=/usr”.
- And hopefully FFMpeg is done, too. Make a temporary folder to install those files to and then run “make install DESTDIR=/path_to_FFMpeg_tmp_folder”
- In that temp folder, copy everything from “usr/local/lib” into “usr/lib” in the folder you installed Audacity to (This is because Audacity depends on a different version of FFMpeg then Debian Jessie uses… they must have some kind of patch to get around it, this is the best solution I could come up with)
- Go to the folder below where you installed Audacity and run “dpkg -b audacity_2.1.2-facco1” (Note: use the actual name of the folder you chose)
- Uninstall your current version of audacity (sudo apt-get remove audacity)
- Install the new audacity (sudo gdebi audacity_2.1.2-facco1)
- Run “sudo ldconfig” (so those FFMpeg libraries get picked up)
That’s it… theoretically you’ve only lost a few hours of your life and haven’t thrown your computer out a window. Oh and Audacity works right again.