LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   How do i install the linux-driver for my Canon MP510 printer? (https://www.linuxquestions.org/questions/linux-hardware-18/how-do-i-install-the-linux-driver-for-my-canon-mp510-printer-711985/)

Donati 03-16-2009 10:40 AM

How do i install the linux-driver for my Canon MP510 printer?
 
Im having a problem installing the driver for my Canon MP510 printer.
I found the drivers here:
http://software.canon-europe.com/sof...403.asp?model=

I think these are the files i need:
cnijfilter-common-2.70-2.src.rpm
cnijfilter-mp510-2.70-2.i386.rpm

But this is all i get:

[root@localhost ~]# cd /home/Donati/incoming
[root@localhost incoming]# rpm -i cnijfilter-common-2.70-2.src.rpm
warning: user adminv270 does not exist - using root
warning: group adminv270 does not exist - using root
warning: user adminv270 does not exist - using root
warning: group adminv270 does not exist - using root
[root@localhost incoming]#

What am i doing wrong?

Im new to linux, and running Linpus Linux on an Acer Extensa 5230E

TB0ne 03-16-2009 12:33 PM

Quote:

Originally Posted by Donati (Post 3477162)
Im having a problem installing the driver for my Canon MP510 printer.
I found the drivers here:
http://software.canon-europe.com/sof...403.asp?model=

I think these are the files i need:
cnijfilter-common-2.70-2.src.rpm
cnijfilter-mp510-2.70-2.i386.rpm

But this is all i get:

[root@localhost ~]# cd /home/Donati/incoming
[root@localhost incoming]# rpm -i cnijfilter-common-2.70-2.src.rpm
warning: user adminv270 does not exist - using root
warning: group adminv270 does not exist - using root
warning: user adminv270 does not exist - using root
warning: group adminv270 does not exist - using root
[root@localhost incoming]#

What am i doing wrong?

Im new to linux, and running Linpus Linux on an Acer Extensa 5230E

Not a thing...that's a source rpm file, and it's installed. You have to BUILD the driver after that, though.

As root, go into the directory where your source files are specified (don't know Linpus, so I'm not sure...try /usr/src/linux). There will be a .spec file there, so you can search for it.

Run "rpm -bb <name of the .spec file>", and it'll build the package. Then install that with the "rpm -i" command, as you did the source.

Donati 03-16-2009 01:34 PM

Thanks.. i found the .spec file here: /usr/src/linpus/SPECS/cnijfilter-common.spec

But when i try to run the "rpm -bb" command, this is the result:

[root@localhost Donati]# cd /usr/src/linpus/SPECS
[root@localhost SPECS]# rpm -bb cnijfilter-common.spec
-bb: unknown option
[root@localhost SPECS]#

Any tips appreciated :)

Donati 03-16-2009 02:27 PM

I think i figured out how to install it.. (by reading the INSTALL file :))

What i did:
cd /usr/src/linpus/SOURCES/
tar -zxvf cnijfilter-common-2.70-2.tar.gz
cd /usr/src/linpus/SOURCES/cnijfilter-common-2.70/cnijfilter/
./autogen.sh --program-suffix=mp510
make
make install

Does it look right so far?
To me it looked like it installed itself ok.

Then i wanted to install the second driverfile: cnijfilter-mp510-2.70-2.i386.rpm
but then i get:

rpm -i cnijfilter-mp510-2.70-2.i386.rpm
error: Failed dependencies:
cnijfilter-common >= 2.70 is needed by cnijfilter-mp510-2.70-2.i386
libxml.so.1 is needed by cnijfilter-mp510-2.70-2.i386

Does this mean cnijfilter-common is not installed?
Any tips appreciated :)

TB0ne 03-16-2009 02:32 PM

Quote:

Originally Posted by Donati (Post 3477435)
I think i figured out how to install it.. (by reading the INSTALL file :))

What i did:
cd /usr/src/linpus/SOURCES/
tar -zxvf cnijfilter-common-2.70-2.tar.gz
cd /usr/src/linpus/SOURCES/cnijfilter-common-2.70/cnijfilter/
./autogen.sh --program-suffix=mp510
make
make install

Does it look right so far?
To me it looked like it installed itself ok.

Then i wanted to install the second driverfile: cnijfilter-mp510-2.70-2.i386.rpm
but then i get:

rpm -i cnijfilter-mp510-2.70-2.i386.rpm
error: Failed dependencies:
cnijfilter-common >= 2.70 is needed by cnijfilter-mp510-2.70-2.i386
libxml.so.1 is needed by cnijfilter-mp510-2.70-2.i386

Does this mean cnijfilter-common is not installed?
Any tips appreciated :)

Correct...it isn't installed. You need to first install the cnijfilter-common package.

Even though you ran the build, it didn't update the RPM database. The -bb option may not work on your system...like I said, I don't have alot of knowledge of Linpus, but check out the man page for rpm. There should be a "build" option (might even be "--build"), for the spec file.

You can also try "rpm -i --nodeps <cnijfilter-mp510-2.70-2.i386.rpm". The "--nodeps" means don't check the dependencies, just install it. Since you ran the make/make install, things might be ok, so give it a shot.

Donati 03-18-2009 11:29 AM

The "rpm -i --nodeps <cnijfilter-mp510-2.70-2.i386.rpm" worked out ok, i think.
Now when i go to the printerconfiguration tool, i have the option to select "mp510 ver. 2.70".
But when i do that, i get this message:

>Missing driver
>Printer 'MP510' requires the 'pstocanonij' program but it is not currently installed.
>Please install it before using this printer.

Then i looked for pstocanonij, and found it in:
/urs/src/linpus/SOURCES/cnijfilter-common-2.70/pstocanonij/

And there is an INSTALL file with instructions, this is what it says:

>To build and install pstocanonij:

> 1) Building misc libraries.
> cd ../libs
> make
> make install
> cd ..

> 2) Building "pstocanonij".
> make
> make install

But im not sure exactly how to follow these instructions?
There is no "libs" folder in
/urs/src/linpus/SOURCES/cnijfilter-common-2.70/pstocanonij/

norm.h 03-18-2009 12:29 PM

Had same problem with drivers for MP140 downloaded from same site.
Try downloading same drivers from the Canon-Asia site.
Double click each package to install
Mine installed trouble free.
Make sure you install the "common" file first, though
norm

TB0ne 03-18-2009 12:30 PM

Quote:

Originally Posted by Donati (Post 3479573)
The "rpm -i --nodeps <cnijfilter-mp510-2.70-2.i386.rpm" worked out ok, i think.
Now when i go to the printerconfiguration tool, i have the option to select "mp510 ver. 2.70".
But when i do that, i get this message:

>Missing driver
>Printer 'MP510' requires the 'pstocanonij' program but it is not currently installed.
>Please install it before using this printer.

Then i looked for pstocanonij, and found it in:
/urs/src/linpus/SOURCES/cnijfilter-common-2.70/pstocanonij/

And there is an INSTALL file with instructions, this is what it says:

>To build and install pstocanonij:

> 1) Building misc libraries.
> cd ../libs
> make
> make install
> cd ..

> 2) Building "pstocanonij".
> make
> make install

But im not sure exactly how to follow these instructions?
There is no "libs" folder in
/urs/src/linpus/SOURCES/cnijfilter-common-2.70/pstocanonij/

There is probably a libs folder in /usr/src/linpus/SOURCES/cnijfilter-common-2.70. The first command indicates that you need to go back one level, and go into the libs directory (the "cd ../libs". The ".." indicates going back one level in the tree). You can try it from there.

Donati 03-18-2009 06:42 PM

I failed in installing pstocanonij.. There is a libs folder in libs folder in /usr/src/linpus/SOURCES/cnijfilter-common-2.70, but when i run make there, it comes with an error that there is no make file present..

Then i tried the advice of getting the file from Canon Asia, and after installing the cnijfilter-common-2.70-1.i386.rpm from terminal, it works perfectly.. Yipii !! :)

Thanks for all your time and effort.

norm.h 03-20-2009 07:35 AM

Well done, enjoy your printer.
norm

norm.h 03-20-2009 07:43 AM

Donati,
The Linux drivers don't carry much information on the printer itself.
I downloaded the USER GUIDES on the Installation CD to my daughter's Windows machine and printed off what I needed. The Routine Maintenance and Errors pages are particularly helpful.
norm


All times are GMT -5. The time now is 10:51 AM.