LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 11-21-2010, 12:16 AM   #1
yzhang738@hotmail.com
LQ Newbie
 
Registered: Oct 2010
Posts: 14

Rep: Reputation: 0
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?
 
Old 11-21-2010, 06:16 AM   #2
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
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 ?
 
Old 11-21-2010, 06:19 PM   #3
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Are you sure yasm is installed? What does it reply if you run the command:
Code:
yasm --version
 
Old 11-22-2010, 12:36 AM   #4
yzhang738@hotmail.com
LQ Newbie
 
Registered: Oct 2010
Posts: 14

Original Poster
Rep: Reputation: 0
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.
 
Old 11-22-2010, 12:39 AM   #5
yzhang738@hotmail.com
LQ Newbie
 
Registered: Oct 2010
Posts: 14

Original Poster
Rep: Reputation: 0
I installed yasm as:
cd /usr/local/src/
wget http://www.tortall.net/projects/yasm...m-1.0.1.tar.gz
tar zfvx yasm-1.0.1.tar.gz
cd yasm-1.0.1
./configure
make && make install
 
Old 11-22-2010, 04:33 AM   #6
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
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.
 
Old 11-22-2010, 05:03 AM   #7
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; Slackware64-current (VM); Debian 12 (VM)
Posts: 8,290
Blog Entries: 61

Rep: Reputation: Disabled
If you're running Ubuntu, why didn't you do:
Code:
sudo apt-get install yasm
?
 
Old 11-23-2010, 12:59 AM   #8
yzhang738@hotmail.com
LQ Newbie
 
Registered: Oct 2010
Posts: 14

Original Poster
Rep: Reputation: 0
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.
 
Old 11-23-2010, 01:11 AM   #9
mac.tieu
Member
 
Registered: Jan 2010
Location: Vietnam
Distribution: Arch
Posts: 65

Rep: Reputation: 22
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.
 
Old 11-23-2010, 01:33 AM   #10
yzhang738@hotmail.com
LQ Newbie
 
Registered: Oct 2010
Posts: 14

Original Poster
Rep: Reputation: 0
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?
 
Old 11-23-2010, 03:01 AM   #11
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Rep: Reputation: 103Reputation: 103
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.
 
Old 11-23-2010, 03:15 AM   #12
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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".
 
Old 11-23-2010, 05:04 AM   #13
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; Slackware64-current (VM); Debian 12 (VM)
Posts: 8,290
Blog Entries: 61

Rep: Reputation: Disabled
Quote:
Originally Posted by yzhang738@hotmail.com View Post
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.
 
Old 11-23-2010, 06:16 AM   #14
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
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).
 
  


Reply

Tags
ffmpeg


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mencoder x264 using 720x480 DragonM15 Linux - Software 23 11-17-2009 02:54 AM
mencoder & x264 help steve51184 Linux - Software 14 05-21-2009 04:58 AM
h264/x264 performance jaykup Linux - Software 2 01-07-2008 09:27 AM
AMD64:x264 ffmpeg problems chronosoft Ubuntu 1 06-10-2007 09:57 PM
trying to compile x264 chronosoft Ubuntu 3 03-27-2006 06:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration