LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 07-15-2010, 03:44 AM   #1
TL_CLD
Member
 
Registered: Sep 2006
Posts: 342

Rep: Reputation: 34
ffmpeg slackbuilds.org script failure


Hey all,

When I try to compile ffmpeg for Slackware 13.1 x86_64 using the slackbuilds.org script, I have to comment these lines:

Code:
( cd $PKG/usr/man
  find . -type f -exec gzip -9 {} \;
  for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
)
If I don't comment them, the builds fails with this error:

Code:
./ffmpeg.SlackBuild: line 194: cd: /tmp/SBo/package-ffmpeg/usr/man: No such file or directory
 
Old 07-15-2010, 04:11 AM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,293

Rep: Reputation: Disabled
It is not the script's fault.
You probably ran "su" to become root in order to compile the package. However, this does not provide a fully compatible root shell... your environment is incomplete.

If you use "su -" to become root instead, then you will have root's full shell environment, so that the ffmpeg.SlackBuild script will work correctly (and the man pages will be created).

Eric
 
Old 07-15-2010, 04:12 AM   #3
dc_eros
Member
 
Registered: Nov 2006
Distribution: Slackware
Posts: 292

Rep: Reputation: 39
Are you using su or su - ?

Use "su -", according to slackBuilds guidelines.

Edit: Oops sorry, too slow here
 
Old 07-15-2010, 04:23 AM   #4
TL_CLD
Member
 
Registered: Sep 2006
Posts: 342

Original Poster
Rep: Reputation: 34
Actually I did this:

$ kdesu "konsole -e $SHELL -l"

Or rather I have that as a shortcut on my main KDE panel. I thought the -l option made sure I had a complete environment.
 
Old 07-15-2010, 05:46 AM   #5
TL_CLD
Member
 
Registered: Sep 2006
Posts: 342

Original Poster
Rep: Reputation: 34
I've just tried compiling it again, this time using "su - root". The result:

Code:
./ffmpeg.SlackBuild: line 194: cd: /tmp/SBo/package-ffmpeg/usr/man: No such file or directory
 
Old 07-15-2010, 06:49 AM   #6
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,293

Rep: Reputation: Disabled
In that case, you have probably not installed the TeX package. That is required to build the man pages. A full installation of Slackware should provide it.

Eric
 
Old 07-15-2010, 08:50 PM   #7
andrew.46
Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 646

Rep: Reputation: 90
I was a frequent offender of the incorrect use of 'su' instead of 'su -' when using slackbuild scripts in the past. Before I corrected myself of this habit I used the following in my own FFmpeg build, which I stole from alienBOB some time ago:

Code:
if ! $(which texi2html 2>/dev/null) ; then
   export PATH=$PATH:/usr/share/texmf/bin
fi
But of course the use of 'su -' is the more correct usage .

Andrew
 
Old 07-16-2010, 12:45 AM   #8
TL_CLD
Member
 
Registered: Sep 2006
Posts: 342

Original Poster
Rep: Reputation: 34
Quote:
Originally Posted by Alien Bob View Post
In that case, you have probably not installed the TeX package. That is required to build the man pages. A full installation of Slackware should provide it.
Eric
That was it. I had installed texlive, but for some odd reason that didn't work.

After having reinstalled tetex, the ffmpeg package now builds without error.

Thanks.
 
  


Reply


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
[SOLVED] ffmpeg install error from SlackBuilds eraosso Slackware 7 11-05-2009 07:23 PM
Build error when running the SlackBuilds.org script for LMMS Crushing Belial Slackware 1 08-05-2009 05:01 PM
libsigc++, slackbuilds.org vinegaroon Slackware 0 05-21-2009 12:50 AM
slackbuilds.org harkonen Slackware 16 08-22-2007 02:01 PM
Use SlackBuilds.org or my own hosting to offer up SlackBuilds? hollywoodb Slackware 6 11-30-2006 08:56 PM


All times are GMT -5. The time now is 02:21 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration