Here's my take on how to solve the pitfalls you might run into when
compiling stuff.
1. Make sure you've got the -devel packages needed.
If configure/make complains about "can't find libsamplerate" or
"jpeg.h missing" or similar, you probably haven't installed the -devel
packages for those programs.
2a. Make sure the linker can find the other libs/programs you compiled.
If you compile things and (per default, usually) install to /usr/local
you need
to make sure the linker finds those libs.
Create a file named local.conf in /etc/ld.so.conf.d and put
/usr/local/lib into it.
2b. Make sure pkgconfig can find your .pc files.
Set PKG_CONFIG_PATH to /usr/local/lib/pkgconfig.
3. Use stow. (Optional but IMHO very usefull)
Stow allows you to install compiled programs to any directory and link
the files to any other (usually /usr/local).
I usually do "./configure --prefix=/opt/<package-name-and-version>" to
install to, say, /opt/audacity-3.5.12 and then run
"stow -d /opt -t /usr/local audacity-3.5.12"
to create symbolic links from /opt/audacity-3.5.12 to /usr/local.
This way it's also very easy to uninstall any self-compiled program;
unstow using
"stow -D -d /opt/ -t /usr/local audacity-3.5.12"
and
"rm -rf /opt/audacity-3.5.12"
and everything's gone.
Using this approach it's also easy to try new new versions and keep
the old as backup.
- Peder
_______________________________________________
Linux-audio-user mailing list
Compiling vamp-sdk and Rubber Band on Ubuntu Studio 64
What other apps and distros do you use to round out your studio?
Moderators: MattKingUSA, khz
Return to “Linux Distributions & Other Software”
Jump to
- Welcome!
- ↳ About LinuxMusicians
- ↳ New? We're glad you're here!
- ↳ Announcements
- ↳ Suggestion Box
- ↳ Newbies
- Linux Music News
- ↳ Linux Music News
- Software Support & Discussion
- ↳ Recorders & Sequencers
- ↳ MusE Sequencer
- ↳ Samplers & samples
- ↳ DrumGizmo
- ↳ Development
- ↳ Support / Suggestions
- ↳ Plugins, Effects and Instruments
- ↳ Notation Editors
- ↳ Linux Distributions & Other Software
- ↳ KXStudio Discussion
- ↳ System Tuning and Configuration
- ↳ Android Audio
- ↳ Linux Powered Mobile Devices
- ↳ Running non-linux software
- ↳ Algorithmic music
- ↳ Multimedia
- Hardware Support & Discussion
- ↳ Computer Related Hardware
- ↳ Your Studio & Gear
- ↳ DIY projects
- ↳ Raspberry Pi
- ↳ Other ARM Hardware / Software
- HOW TOs, Tips & Tricks
- ↳ HOW TOs, Tips & Tricks
- Musician's Corner
- ↳ Music Theory/Songwriting
- ↳ Original Scores & Recordings
- ↳ Rehearsal Room
- ↳ The Producer's Area
- ↳ Open Source Musician Podcast
- ↳ Virtual Music Projects
- Developer's Section
- ↳ Developer's Section
- Stuff That Doesn't Fit Anywhere Else
- ↳ General Music Discussion
- ↳ Music & FOSS Advocacy
- ↳ Backstage
- ↳ Marketplace
- ↳ MOD Devices