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.
These are the full instructions for installing libmad. I'm trying to figure out what the part with "cat" does. From what I know about "here docs," "here docs" are supposed to be embedded in scripts. Below, I understand how the input following the file /usr/lib/pkgconfig/mad.pc is concatenated with the file. However, I don't understand how the "here doc" format works with using "cat" from the command line. I can't tell if these instructions are telling me to add from "cat" to "EOF" to some script or if I am supposed to use it just like a "cat" command.
Installation of libmad
Install libmad by running the following commands:
./configure --prefix=/usr &&
make
This package does not come with a test suite.
Now, as the root user:
make install
Some packages check for the pkg-config file for libmad. This file is particularly needed so that Cdrdao can recognize the installed libmad.
However, I don't understand how the "here doc" format works with using "cat" from the command line. I can't tell if these instructions are telling me to add from "cat" to "EOF" to some script or if I am supposed to use it just like a "cat" command.
This is a regular cat command with input (the green part) and redirected output (the blue part). The here-document (all between "EOF" and EOF) is a container that holds the input. All this is one command.
You can copy/paste (or type) this in the shell. You will see a > (the PS2 prompt) at the beginning of the lines when you type or copy/paste, this is bash telling you that it hasn't seen the closing EOF (command isn't complete yet).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.