SlackwareThis Forum is for the discussion of Slackware Linux.
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.
./MPlayer.SlackBuild: line 382: cd: /tmp/build/package-MPlayer/usr/share/mplayer/skins: No such file or directory
./MPlayer.SlackBuild FAILED at line 382!
/usr/share/mplayer/skins directory does exist.
Quote:
# Install our default skin:
cd $PKG/usr/share/mplayer/skins ->line 382
tar -xvf ${SOURCE[1]}
chown -R root:root *
chmod -R u+w,go+r-w,a+X-s *
ln -s ${DEFSKIN} default
cd -
So what is wrong with line 382 or above script? Any help is appreciated thank you.
Thank you gengisdave,
I had a look @ /tmp/build/package-MPlayer/usr/share/mplayer/skins directory:
I thought it was a syntax problem in MPlayer.SlackBuild on Line-382 -> cd $PKG/usr/share/mplayer/skins thought space was missing between $PKG /usr/share/mplayer/skins -> so i added the space?
Everything went fine until - Line 469:
./MPlayer.SlackBuild FAILED at line 469!
Tried gengisdave's much appreciated solution by adding his line just above line 382, after removing the space I had added between $PKG/usr/share/mplayer/skins.
Build still failed on Line 470 originally Line 469:
a '\' character at the end of a line in a bash script means "next line is still a part of this command line, but it's more readable then writing on a single line"; note the two spaces on the second line meaning a sort of indentation
What does this mean? Also, what do these 2 symbols mean together: !=
Going to go back and try your solution, now.
This looks like the result of text wrapping. Let's say you use Vim with something like :set textwidth=79 (which is what I use). You open the script, edit a line, but it gets wrapped... and produces the error above.
With Vim, the solution would be to open your file and then immediately use :set textwidth=0 to disable wrapping. Or you know what you are doing, and then you can wrap the text without forgetting the '\' at the end of the line.
Appreciate your explanations - been piecing it together thru searches & checking back in here. Is the wrapping causing the piping part of the line to fail?
I logout of X and log back in as root then cd /home/user/Build to run script. I use vi to edit, so I can set vi with is command :set textwidth=0 ? will that make the script run smoother? Going to try it.
slackbuild chokes at the end - Line 470 - Stripping Pipe
Build fails at line 470! Build still choking on the piping part & end of line 469 at end of Build Script (
I'm going to try editing the line so that it breaks in a different place. Unfortunately it is trial & error. Thanks everyone & a Healthy New Year.
Last edited by NightSky; 12-30-2013 at 08:51 PM.
Reason: Stuck
Going to mark this thread as solved - although I'm not sure why the build was failing on lines 382 and 469. The solution was to intall libdvdcss and then MPlayer 20110624 pkg I'd previously built without dvdcss support. Did learn more about the slackbuild script & process - much appreciate all the support. MPlayer is working fine. A Peaceful & Healthy New Year to the slackware, linux, & world community.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.