LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   What am I doing wrong here with CPIO? (https://www.linuxquestions.org/questions/linux-software-2/what-am-i-doing-wrong-here-with-cpio-460897/)

pipkato 07-04-2006 09:09 AM

What am I doing wrong here with CPIO?
 
Can anyone help with my so far unsuccessful efforts to install Tivowebplus 1.2.1? I'm trying to install it into a Tivo PVR which I believe runs GNU Linux.

I can't seem to get it to install. I've downloaded it and gzipped it to my /var/hack folder, and it has expanded okay to the file 'tivowebplus-1.2.1.tar'.

But when I Telnet (from my Windows XP machine) and run what I believe is the correct install command it just lists out the various directories of the Tivowebplus file and gives me the error message 'no such file or directory' at the end of each line.

I'm running the command '/bin/cpio -H tar -i < tivowebplus-1.2.1.tar' from the /var/hack directory.

I know nothing about Linux so it may be that my sources of info have some error in the punctuation of the Linux command line.

Can anyone help?

Any advice gratefully received.

Thanks.

bigrigdriver 07-04-2006 09:48 AM

Cpio is used to copy files into or out of an archive. It isn't used to install software (at least I haven't heard of it being used to install).

You have unzipped the archive. Now you need to extract the contents.
tar -xf tivowebplus-1.2.1.tar

That will probably create a directory named tivowebplus-1.2.1. You will still have the tar archive, but you will also have the directory with all the contents of the archive.

then,
cd tivowebplus-1.2.1

Look for a README or INSTALL file. That should contain installation instructions. The most common is a set of three commands:
./configure
make
make install (which you will probably have to su to root to have the necessary permissions to write the files to their installation locations.

The su command will prompt you for the root password.

pipkato 07-04-2006 10:13 AM

Thanks Bigriver.

I found the solution.

The command line I was given needed an extra character to make it work. Instead of '-i' it needed '-id'. The addition of the 'd' forces the preparation of the directories that 'Tivowebplus' expands into.

Once I did that it was hunky dory.

Thanks again.

Roy

bigrigdriver 07-04-2006 10:26 AM

I learn something new everytime I turn on this machine. Thanks, pipkato.


All times are GMT -5. The time now is 01:32 AM.