LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Problem installing printer in Mandrake 9.1 (https://www.linuxquestions.org/questions/linux-software-2/problem-installing-printer-in-mandrake-9-1-a-93306/)

AnandKM 09-16-2003 03:04 AM

Problem installing printer in Mandrake 9.1
 
Dear friends,

I am new to Linux and have installed Mandrake 9.1 on my office Dell desktop.

We have a Xerox Document Center 230 - Networked printer.

I went to their website and downloaded both Linuxi386XpxxInstall and PrinterpackageXpxx files into file:/home/anand/documents directory.

I unzipped them (sorry windows hangover!) in the same directory.

I then went to superuser mode and ran ./setup command and the results are enclosed below....

root@dubbc8sn0j-1 Linuxi386XpxxInstall]# ./setup
.............ERROR: unable to locate system command 'uncompress'
[root@dubbc8sn0j-1 Linuxi386XpxxInstall]#

What am I doing wrong?.

Kindly help.

I look forward to your assistance.

Best regards,

Anand K.

drgowans 09-16-2003 08:56 AM

I have found that several distributions of Linux don't contain a program that many other POSIX compliant OSes have standard. Linux always has to be a little different. There also may be licensing issues. But the bottom line is that 'uncompress' is 'unnecessary' because we have 'gzip/gunzip'

The first solition I would try would be to make an alias command to uncompress (since gunzip will do the same thing, usually.)

Type this before typing ./setup:

[root@dubbc8sn0j-1 Linuxi386XpxxInstall]# alias uncompress gunzip

It may not work if the syntax is different between the version of uncompress that the setup program wants and gunzip, but it might work. If it doesn't, look for a package for mandrake to install that has uncompress.

AnandKM 09-17-2003 01:18 AM

many thanks for you help.

As i am on a fast internet connection, i have downloaded and installed?! all the mandrake fixes/bugs/updates from its site using rpmdrake.

As per your advise i ran to command and here are its results.

[root@dubbc8sn0j-1 Linuxi386XpxxInstall]# alias uncompress gunzip
bash: alias: uncompress: not found
bash: alias: gunzip: not found

so i ran the locate command for both uncompress and gunzip and here are the results

[root@dubbc8sn0j-1 Linuxi386XpxxInstall]# locate uncompress
/usr/share/man/it/man1/uncompress.1.bz2
/usr/share/man/pl/man1/uncompress.1.bz2
/usr/share/apps/konqueror/servicemenus/uncompress-gz.desktop
/usr/share/apps/konqueror/servicemenus/uncompress-tgz.desktop
/usr/share/apps/konqueror/servicemenus/uncompress-zip.desktop
/usr/share/emacs/21.2.93/lisp/obsolete/uncompress.elc
/usr/X11R6/bin/gvuncompress
/usr/src/linux-2.4.21-0.25mdk/drivers/usb/pwc-uncompress.c
/usr/src/linux-2.4.21-0.25mdk/drivers/usb/pwc-uncompress.h
/usr/src/linux-2.4.21-0.25mdk/fs/cramfs/uncompress.c
/usr/src/linux-2.4.21-0.25mdk/include/linux/modules/pwc-uncompress.stamp
/usr/src/linux-2.4.21-0.25mdk/include/linux/modules/pwc-uncompress.ver
[root@dubbc8sn0j-1 Linuxi386XpxxInstall]# locate gunzip
/usr/share/man/man1/gunzip.1.bz2
/usr/share/man/fr/man1/gunzip.1.bz2
/usr/share/man/es/man1/gunzip.1.bz2
/usr/share/man/ja/man1/gunzip.1.bz2
/usr/share/man/it/man1/gunzip.1.bz2
/usr/share/man/pl/man1/gunzip.1.bz2
/usr/bin/gunzip

Does this mean that i have both this packages/utilities already exisiting in my computer, if so do they need to be separately installed?

Which is a good download website for linux software where i can locate these utilities.

I thank you in advance for you assistance.

Best regards,

Anand K.

drgowans 09-17-2003 08:45 AM

The two lines of interest to me are the following:

/usr/X11R6/bin/gvuncompress
/usr/bin/gunzip

You definitely have gunzip. As for uncompress, I am not sure what gvuncompress is. You may want to try aliasing each of them and see what happens. But first, I am somewhat concerned about your path variable. It should definitely include the directory in which gunzip resides, /usr/bin/

Could you post your path and shell? You can get it by typing:

[root@dubbc8sn0j-1 Linuxi386XpxxInstall]# echo $PATH
and
[root@dubbc8sn0j-1 Linuxi386XpxxInstall]# echo $SHELL

Also, sometimes the PATH variable is smaller for root. However, since it is an install, you need to be root. So you may need to augment your PATH variable. To do it in bash/sh, type the following at the prompt:

export PATH=$PATH:/usr/bin:/usr/X11R6/bin

Then try:

alias uncompress gunzip

again, and if that doesn't work,

alias uncompress gvuncompress

If neither of those work- then post the setup script from your program - assuming it is a text file.

Good luck!

AnandKM 09-18-2003 12:58 AM

Dear Friend,

Here are the results of my tries today:

root@dubbc8sn0j-1 XeroxInstall]# echo $PATH
/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/X11R6/bin

[root@dubbc8sn0j-1 XeroxInstall]# echo $SHELL
/bin/bash

[root@dubbc8sn0j-1 XeroxInstall]# alias uncompress gunzip
bash: alias: uncompress: not found
bash: alias: gunzip: not found
[root@dubbc8sn0j-1 XeroxInstall]# alias uncompress gvuncompress
bash: alias: uncompress: not found
bash: alias: gvuncompress: not found
[root@dubbc8sn0j-1 XeroxInstall]# alias gvuncompress gunzip
bash: alias: gvuncompress: not found
bash: alias: gunzip: not found

I assume this is what u mean by setup script (installation instructions?)
run setup within the install directory as root to install the driver.

NOTE: setup will expand and install the compressed tar file in the install
directory, generate script files and other files that are needed
at run time. The following syntaxes are supported:
1) setup <== menu driven install
2) setup tmp_path <== menu driven install
3) setup install install_path <== no menu, just install
4) setup install install_path tmp_path <== no menu, just install
install_path is the installation directory which will contain all
the Xerox software.
tmp_path is a temporary work area. /tmp is the default work area.

In any of the above syntaxes the no_space_check is also supported
and will disable the check to ensure free space exists in the install and
tmp paths.

I appreciate your patience with my me and thank you in advance for your assistance.

Best regards,

Anand K.

drgowans 09-18-2003 08:54 AM

Anand,

I am sorry, but it seems I have been giving you some bad information. I was telling you to use alias, but I was typing it like I was at the cshell prompt. The alias command is different under the bash script.

Type the same alias command, just with an equal sign between the two arguments:

alias uncompress=gunzip

Then try setup. We'll see what happens. Also, when I said to send me the setup script, I meant sent me the script itself. However, it may be big. Check how long it is. But only send it if this doesn't work.

As for uncompress, you may want to try finding a redhat package containing uncompress. I can't find anything on the mandrake page except the full CDs for the whole OS. I also don't know if you can install redhat packages on mandrake.

Talk to you again Monday.


All times are GMT -5. The time now is 12:15 PM.