Hi all,
I tried to compile audacity from source code because for some reason I won’t explain, I can’t use a package manager. Yet I am new to linux so I am not used to manage every single library dependency when installing a software. To tell you the truth I liked it when I only had to drag and drop an application icon in the “Application folder”. Computers seemed magical and wise beings endowed both with rationality and supernatural abilities then …
Anyway, so I ran ./configure --prefix=$HOME/install because I am not an administrator, and I get the following error:
configure: error: Audacity requires libsndfile to be enabled
corresponding commands in configure file:
if test "$LIBSNDFILE_USE_LOCAL" != "yes" && test "$LIBSNDFILE_USE_SYSTEM" != "yes" ; then
{ { $as_echo "$as_me:$LINENO: error: Audacity requires libsndfile to be enabled" >&5
$as_echo "$as_me: error: Audacity requires libsndfile to be enabled" >&2;}
{ (exit 1); exit 1; }; }
fi
LIBSNDFILE must be some environment variable but running printenv tells me it is not part of MY environment variables. Yet I know that the libsndfile library is on my system because:
locate libsndfile
/usr/lib64/libsndfile.so.1
/usr/lib64/libsndfile.so.1.0.17
/usr/share/doc/libsndfile-1.0.17
/usr/share/doc/libsndfile-1.0.17/AUTHORS
/usr/share/doc/libsndfile-1.0.17/COPYING
/usr/share/doc/libsndfile-1.0.17/ChangeLog
/usr/share/doc/libsndfile-1.0.17/NEWS
/usr/share/doc/libsndfile-1.0.17/README
/usr/share/doc/libsndfile-1.0.17/TODO
what shall I do, gentlemen ?
cheers
gus
Another way to put it is:
Where should my libsndfile library be installed in order for configure to run thoroughly ?
Should I have an environment variable setup to tell configure where to find my libsndfile library ?
What does audacity need to know about my libsndfile library ?
geebee
October 8, 2009, 9:55pm
3
Same problem.
look at the config.log
Package sndfile was not found in the pkg-config search path.
Perhaps you should add the directory containing `sndfile.pc’
to the PKG_CONFIG_PATH environment variable
No package ‘sndfile’ found
Use the locate command again
locate sndfile.pc
/usr/lib64/pkgconfig/sndfile.pc
(Guess this is probably where it is?)
echo $PKG_CONFIG_PATH
/usr/local/lib/pkgconfig:/usr/lib/pkgconfig
Some how sndfile.pc got installed but wasnt in the place specified in PKG_CONFIG_PATH
May be ok to just cp -p /usr/lib64/pkgconfig/sndfile.pc /usr/local/pkgconfig/sndfile.pc
#./configure
#make -j2
#make install
geebee
October 8, 2009, 10:25pm
4
Actually should not have said lib64 that would be wrong to move from lib64 to lib
but get the idea you probably dont have /usr/local/lib in PKG_CONFIG_PATH or something like that.
Correct PKG_CONFIG_PATH or
Reinstall libsndfile
You dont say what linux you use what package management but irrespective you can download the slackware package.
libsndfile-1.0.20-i486-1sl.tgz
gunzip libsndfile-1.0.20-i486-1sl.tgz
tar -tvf libsndfile-1.0.20-i486-1sl.tar
drwxr-xr-x root/root 0 2009-05-15 17:05 ./
drwxr-xr-x root/root 0 2009-05-15 17:05 usr/
drwxr-xr-x root/root 0 2009-05-15 17:05 usr/bin/
-rwxr-xr-x root/root 11808 2009-05-15 17:05 usr/bin/sndfile-metadata-set
-rwxr-xr-x root/root 7180 2009-05-15 17:05 usr/bin/sndfile-metadata-get
-rwxr-xr-x root/root 8220 2009-05-15 17:05 usr/bin/sndfile-jackplay
-rwxr-xr-x root/root 11236 2009-05-15 17:05 usr/bin/sndfile-regtest
-rwxr-xr-x root/root 12148 2009-05-15 17:05 usr/bin/sndfile-convert
-rwxr-xr-x root/root 8612 2009-05-15 17:05 usr/bin/sndfile-info
-rwxr-xr-x root/root 4772 2009-05-15 17:05 usr/bin/sndfile-cmp
-rwxr-xr-x root/root 10664 2009-05-15 17:05 usr/bin/sndfile-play
drwxr-xr-x root/root 0 2009-05-15 17:05 usr/doc/
drwxr-xr-x root/root 0 2009-05-15 17:05 usr/doc/libsndfile-1.0.20/
-rw-r–r-- root/root 3122 2009-05-15 17:05 usr/doc/libsndfile-1.0.20/libsndfile.SlackBuild
-rw-r–r-- root/root 1615 2009-05-14 10:50 usr/doc/libsndfile-1.0.20/README
-rw-r–r-- root/root 897 2009-05-15 17:05 usr/doc/libsndfile-1.0.20/slack-desc
-rw-r–r-- root/root 4646 2009-05-14 10:51 usr/doc/libsndfile-1.0.20/NEWS
drwxr-xr-x root/root 0 2009-05-15 17:05 usr/doc/libsndfile-1.0.20/html/
-rw-r–r-- root/root 2644 2009-05-15 17:05 usr/doc/libsndfile-1.0.20/html/bugs.html
-rw-r–r-- root/root 760 2009-05-15 17:05 usr/doc/libsndfile-1.0.20/html/tutorial.html
-rw-r–r-- root/root 22193 2009-05-15 17:05 usr/doc/libsndfile-1.0.20/html/index.html
-rw-r–r-- root/root 30120 2009-05-15 17:05 usr/doc/libsndfile-1.0.20/html/FAQ.html
-rw-r–r-- root/root 2332 2009-05-15 17:05 usr/doc/libsndfile-1.0.20/html/pkgconfig.html
-rw-r–r-- root/root 1367 2009-05-15 17:05 usr/doc/libsndfile-1.0.20/html/embedded_files.html
-rw-r–r-- root/root 4572 2009-05-15 17:05 usr/doc/libsndfile-1.0.20/html/new_file_type.HOWTO
-rw-r–r-- root/root 3996 2009-05-15 17:05 usr/doc/libsndfile-1.0.20/html/octave.html
-rw-r–r-- root/root 40474 2009-05-15 17:05 usr/doc/libsndfile-1.0.20/html/command.html
-rw-r–r-- root/root 1601 2009-05-15 17:05 usr/doc/libsndfile-1.0.20/html/lists.html
-rw-r–r-- root/root 22043 2009-05-15 17:05 usr/doc/libsndfile-1.0.20/html/libsndfile.jpg
-rw-r–r-- root/root 26023 2009-05-15 17:05 usr/doc/libsndfile-1.0.20/html/api.html
-rw-r–r-- root/root 29720 2009-05-15 17:05 usr/doc/libsndfile-1.0.20/html/dither.html
-rw-r–r-- root/root 1562 2009-05-15 17:05 usr/doc/libsndfile-1.0.20/html/libsndfile.css
-rw-r–r-- root/root 1253 2009-05-15 17:05 usr/doc/libsndfile-1.0.20/html/sndfile_info.html
-rw-r–r-- root/root 1281 2009-05-15 17:05 usr/doc/libsndfile-1.0.20/html/win32.html
-rw-r–r-- root/root 7831 2009-03-22 19:17 usr/doc/libsndfile-1.0.20/INSTALL
-rw-r–r-- root/root 635 2009-03-22 19:17 usr/doc/libsndfile-1.0.20/AUTHORS
-rw-r–r-- root/root 258215 2009-05-14 11:19 usr/doc/libsndfile-1.0.20/ChangeLog
-rw-r–r-- root/root 26518 2009-03-22 19:17 usr/doc/libsndfile-1.0.20/COPYING
drwxr-xr-x root/root 0 2009-05-15 17:05 usr/lib/
-rwxr-xr-x root/root 391960 2009-05-15 17:05 usr/lib/libsndfile.so.1.0.20
-rwxr-xr-x root/root 1048 2009-05-15 17:05 usr/lib/libsndfile.la
drwxr-xr-x root/root 0 2009-05-15 17:05 usr/lib/pkgconfig/
-rw-r–r-- root/root 243 2009-05-15 17:05 usr/lib/pkgconfig/sndfile.pc
drwxr-xr-x root/root 0 2009-05-15 17:05 usr/man/
drwxr-xr-x root/root 0 2009-05-15 17:05 usr/man/man1/
-rw-r–r-- root/root 505 2009-05-15 17:05 usr/man/man1/sndfile-play.1.gz
-rw-r–r-- root/root 411 2009-05-15 17:05 usr/man/man1/sndfile-info.1.gz
-rw-r–r-- root/root 420 2009-05-15 17:05 usr/man/man1/sndfile-convert.1.gz
drwxr-xr-x root/root 0 2009-05-15 17:05 usr/include/
-rw-r–r-- root/root 20074 2009-05-15 17:05 usr/include/sndfile.h
-rw-r–r-- root/root 10156 2009-05-15 17:05 usr/include/sndfile.hh
drwxr-xr-x root/root 0 2009-05-15 17:05 install/
-rw-r–r-- root/root 897 2009-05-15 17:05 install/slack-desc
-rw-r–r-- root/root 251 2009-05-15 17:05 install/slack-required
-rw-r–r-- root/root 198 2009-05-15 17:05 install/doinst.sh
Ignore the last install files but above is what you should have.
OK in time to write this, slow make on crappy computer I just had to install on now worked OK.
I
titusdt
October 14, 2009, 10:09am
5
Hi
Problem solved: it appears that libsndfile was not in the lib-src folder. So i just dowloaded libsndfile and put it there