Linux - Software This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
11-21-2010, 12:16 AM
|
#1
|
|
LQ Newbie
Registered: Oct 2010
Posts: 14
Rep:
|
x264 cannot find yasm
I got a strange problem. I tried to install x264. When run sudo ./configure --enable-shared, it gave:
Found no assembler
Minimum version is yasm-0.6.2
But I already installed yasm-1.0.1. Why can it not find yasm?
|
|
|
|
11-21-2010, 06:16 AM
|
#2
|
|
Guru
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,610
|
How did you install yasm ? Where ? What distro ?
It should be installed in /usr/lib or /usr/lib64.
I'm guessing this is a 64-bit system where it uses yasm, right ?
|
|
|
|
11-21-2010, 06:19 PM
|
#3
|
|
Senior Member
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073
Rep:
|
Are you sure yasm is installed? What does it reply if you run the command:
|
|
|
|
11-22-2010, 12:36 AM
|
#4
|
|
LQ Newbie
Registered: Oct 2010
Posts: 14
Original Poster
Rep:
|
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.
|
|
|
|
11-22-2010, 04:33 AM
|
#6
|
|
Guru
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,610
|
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.
|
|
|
|
11-22-2010, 05:03 AM
|
#7
|
|
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Laptop: Slackware 14.0 // Desktop: Slackware64 14.0 // Netbook: Slackware 14.0
Posts: 6,176
|
If you're running Ubuntu, why didn't you do:
Code:
sudo apt-get install yasm
?
|
|
|
|
11-23-2010, 12:59 AM
|
#8
|
|
LQ Newbie
Registered: Oct 2010
Posts: 14
Original Poster
Rep:
|
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.
|
|
|
|
11-23-2010, 01:11 AM
|
#9
|
|
Member
Registered: Jan 2010
Location: Vietnam
Distribution: Arch
Posts: 65
Rep:
|
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.
Cheers,
MT
Last edited by mac.tieu; 11-23-2010 at 01:12 AM.
|
|
|
|
11-23-2010, 01:33 AM
|
#10
|
|
LQ Newbie
Registered: Oct 2010
Posts: 14
Original Poster
Rep:
|
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?
|
|
|
|
11-23-2010, 03:01 AM
|
#11
|
|
Senior Member
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,467
Rep:
|
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.
|
|
|
|
11-23-2010, 03:15 AM
|
#12
|
|
Moderator
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
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".
|
|
|
|
11-23-2010, 05:04 AM
|
#13
|
|
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Laptop: Slackware 14.0 // Desktop: Slackware64 14.0 // Netbook: Slackware 14.0
Posts: 6,176
|
Quote:
Originally Posted by yzhang738@hotmail.com
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.
|
|
|
|
11-23-2010, 06:16 AM
|
#14
|
|
Guru
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,610
|
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).
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:01 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|