About SOX error record when installing OpenMeetings

Through the official installation instructions of Openmeetings, I thought the installation would be smooth, but the results made people doubt life. The reason for my bug was the following error when installing SoX:

Error message during ./configure make make install :

/sbin/ldconfig.real: Cannot mmap file /usr/local/lib/libsox.so.3

type sox command have error: 

sox: error while loading shared libraries: libamrnb.so.3: cannot open shared object file: No such file or directory

The problem is really coming, the first thing is Baidu, find some methods are the same as the http://www.cnblogs.com/wflxz/p/5587536.html page, that is, e is t in c/ld .so.conf.d/ Create a *.conf below and add a line 

/usr/local/lib 

Add their library connections, and finally ldconfig is done.

As a result, this position has been unable to pass, and the error has been reported as:

/sbin/ldconfig.real: Cannot mmap file /usr/local/lib/libsox.so.3


The only way is to go over the wall to find Google, and find a 2007 post on sox's open source website that says the same thing. Friends who found this article, don't waste time reading it, talk about the problem solving one after another. Here comes another one, that's it, don't waste time watching it.

https://sourceforge.net/p/sox/mailman/message/8090655/

Look for it later, and see what other posts are related to the error report of sox. I really found a post later that said to see where sox is first.

which sox 

found in /usr/local/bin/sox

Let's take a look at the relevant library file support.

ldd /usr/local/bin/sox

        linux-vdso.so.1 =>  (0x00007ffe9df1b000)
	libsox.so.3 => Not Found
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f7cc64c1000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f7cc62a4000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f7cc5eda000)
	......

Good guy, this Libsox.so doesn't find the corresponding library at all.

Go to the library file location and read:


The corresponding libraries are all there, but I can't figure out what's wrong. (There is a stalk here. I can't find the reason without experience and no comparison. I will talk about it later.)

Continue to Google, last time I used sox: error while loading shared libraries: libamrnb.so.3: to search, this time I used /sbin/ldconfig.real: Cannot mmap file /usr/local/lib/libsox.so for another error .3 to try it.

Someone at https://stackoverflow.com/questions/11542255/ldconfig-error-is-not-a-symbolic-link also had a soft connection problem, but not Sox. I looked at it with a look at it, but there was no direct connection. Answer the question, but the best way to deal with it is to find the corresponding library and copy it and process it manually.

There is no way, I think it is also in the installation./configure --prefix=$HOME to see if there is any difference.

As a result, the problem I really found is the above stalk. This time the libsox.so.3.0.0 library file was installed, and there was an empty link last time.


Quickly bring the library file CP over and compare the differences between the two:

Under ldconfig, there is no error, sox is great, this time it was successful.


This time, Sox installation, error reporting, looking for problems, worrying, looking up information, flipping through posts, and finally solving the problem took two days. I hope it can help newcomers who reported similar errors.


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326439286&siteId=291194637