Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I installed yasm in /usr/local/src because x264 is also installed there. libyasm.a is in /usr/local/lib. The linux system is centOS 5.5 x86_64. yasm version is 1.0.1.
Install it to '/usr/lib' using './configure --prefix=/usr' then make, make install. Or for 64-bit: './configure --prefix=/usr --libdir=/usr/lib64' if libs are in lib64 and not lib like in some distros.
I do not install yasm on ubuntu. However, I am not sure what apt-get does. It seems that installation on Ubuntu always use apt-get. I think it is a rpm. Can you expain what is difference between installation from source and that from apt-get? Thanks.
YASM is compiler which x264 use to compile assembler files (just like using 'gcc' to compile '.c' files). All you need to do is compile yasm source code then copy 'yasm' program to directory which in $PATH (/usr/bin,...) then configure x264 again.
Thanks a lot, H_TeXMeX_H. It is working after install yasm to /usr/lib64.
But on another machine, even I install yasm to /usr/local/lib, ffmpeg still can find yasm. Both are centos x86_64. Why is that?
Maybe FFMPeg is using a different configure script that looks for yasm in a different location than x264?
If you can find where FFMPeg is looking, (check configure.log, I think) you can probably just put a symlink there to where every yasm actually is. Or you can put the path to yasm into your system PATH variable.
You are talking about a single directory. When you build a project, the default install base (a.k.a. prefix) directory is usually /usr/local/.
Did you use a "--prefix=" argument when you ran "./configure"?
from the tar ./configure --help output, for example:
Code:
By default, `make install' will install all the files in
`/usr/local/bin', `/usr/local/lib' etc. You can specify
an installation prefix other than `/usr/local' using `--prefix',
If you didn't change the prefix, then /usr/local/bin is where the program is and /usr/local/lib or /usr/local/lib64 is where the libraries are.
You will need to add /usr/local/bin/ to your $PATH variable in your ~/.profile script. You will also need to add /usr/local/lib (or /usr/local/lib64) to the /etc/ld.so.conf file and then run "sudo /sbin/ldconfig".
I do not install yasm on ubuntu. However, I am not sure what apt-get does. It seems that installation on Ubuntu always use apt-get. I think it is a rpm. Can you expain what is difference between installation from source and that from apt-get? Thanks.
I mentioned Ubuntu, because you've got its logo in your profile. Apt-get is its CLI package-manager, it downloads and installs ready made packages.
Libs installed in /usr/local/lib are not always found by configure scripts, even if this directory is in /etc/ld.so.conf. I don't know why, but suspect that the configure script is dumb. I always install libs to /usr (lib or lib64 depending on distro).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.