LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Installing Canon pixma MP520 (https://www.linuxquestions.org/questions/slackware-14/installing-canon-pixma-mp520-698328/)

exsencon 01-19-2009 07:47 AM

Installing Canon pixma MP520
 
My system:
Dell Dimension 520 P4 3GHZ 3GB RAM 2*250GB HD Nvidia graphics
1st HD has WinXP prof
2nd HD has Kubuntu,LinuxMint,Ubuntu,Debian,Fedora FC8,Sabayon,Suse,Slax and Slackware12
Everything booting fine from Grub bootloader (Kubuntu's) in the MBR

I have a Canon Pixma MP520 printer-scanner-copy machine (usb) and got it working in every Linux distribution I have,using the Canon provided linux drivers in .deb or .rpm. No problem-except with slackware12.
I tried to install in a console as I usually do and I get:

root@HOME:~# rpm -ivh /root/Download/cnijfilter-common-2.80-1.i386.rpm
rpm: /lib/libc.so.6: version `GLIBC_2.8' not found (required by /usr/local/lib/libpopt.so.0)
root@HOME:~# rpm -ivh /root/Download/cnijfilter-mp520series-2.80-1.I386.rpm
rpm: /lib/libc.so.6: version `GLIBC_2.8' not found (required by /usr/local/lib/libpopt.so.0)
root@HOME:~#


So apparently it needs a newer version of GLIBC than the one I have. It surprises me because slack12 is quite recent.Anyway where do I get the newer version and how do I install that,slack being kind of new and peculiar to me.
Thanks

gegechris99 01-19-2009 08:27 AM

Hello,

It's not recommended to install directly rpm package in Slackware.

For detail about Slackware Package Management, you can refer to the slackbook

It will, among other, explain how to convert .rpm packages into .tgz packages (using tool rpm2tgz)

Also, you may not need to install the vendor driver as Slackware 12.0 comes with a package containing drivers (gimp-print package which is replaced by gutenprint package in Slackware 12.2 which is the latest release of Slackware).

exsencon 01-19-2009 09:35 AM

No luck

Tried to convert rpm in tgz:

root@HOME:~# rpm2tgz /root/Download/cnijfilter-common-2.80-1.i386.rpm
mkdir: /lib/libc.so.6: version `GLIBC_2.7' not found (required by mkdir)
mkdir: /lib/libc.so.6: version `GLIBC_2.8' not found (required by /usr/local/lib/libselinux.so.1)
/usr/bin/rpm2tgz: line 92: ERROR: Could not find mcookie, openssl, or md5.
Exiting since a secure temporary directory could not be made./cnijfilter-common-2.80-1.i386.cpio: No such file or directory
ERROR: rpm2cpio failed. (maybe /root/Download/cnijfilter-common-2.80-1.i386.rpm is not an RPM?)


Tried Gimp print also, it says printing but nothing happens.
Now every other linux distribution needed the vendor (canon) drivers,so my guess is I'll have to install them somehow

gegechris99 01-19-2009 01:28 PM

Slackware 12.0 ships with glibc 2.5 so I guess you can not install your rpm driver (at least not the version you try to install).

I would suggest that you install Slackware 12.2 that ships with glibc 2.7. A fresh reinstall is strongly suggested (as opposed to upgrading from 12.0 which necessitates to upgrade from 12.0 to 12.1 and then from 12.1 to 12.2)

exsencon 01-19-2009 03:38 PM

Yes,I think there is no other option than getting Slackware12.2 and even then I am not sure it will work. Slack seems to be a little harder than other distros.

gegechris99 01-19-2009 04:09 PM

Quote:

Originally Posted by exsencon (Post 3414255)
Yes,I think there is no other option than getting Slackware12.2 and even then I am not sure it will work. Slack seems to be a little harder than other distros.

Slackware 12.2 comes with gutenprint 5.2.2 which supports your printer: check the list of supported drivers here. So I would say that you won't need to install the vendor's rpm package. Of course, you'll need to check the gutenprint driver to see which features are available.

Yes, Slackware requires some investment in that you are expected to tweak the system to make it work for your own purpose.

The Slackbook would be a good starting point to understand Slackware philosophy.

Other useful links are available here

Before starting the installation, also read the README, CHANGES_AND_HINTS files in first CD. You'll find workarounds to potential issues.

For your information, during the installation, you will find that installation of the gutenprint package takes a while because all compressed drivers are created from scratch (about 42M of files. It took 10 minutes on my 1.8Ghz machine).

exsencon 01-20-2009 01:42 PM

OK I got Slackware12.2 installed and got my printer installed in 2 minutes!The driver for my MP520 was present with cups+gutenprint as you said.
Slack installation didn't work with my external USB disk on,I had to switch that off and then it was straightforward.
But...I have no sound (I did alsaconf but no result-it says "default device can't be opened for playback,no such file or directory)
Several applications do not work Firefox,Gimp and other graphics apps,and some others. Those things worked in Slack12(I think the only thing that didn't work was the printer) now I have the printer but a lot of other things don't work.
Any ideas how to get those simple (no doubt)things to work? Is this a general config.problem?
Thanks

gegechris99 01-20-2009 02:34 PM

Hello,

I assume you made a full install.

I'm afraid you have to be more specific when you say an application doesn't work.

For example, try to run Gimp in the console:

Code:

gimp
If there are errors, they will be dumped in the console. Post any error message you get

exsencon 01-20-2009 03:01 PM

I made a full install

Here is what I get for gimp in console:

root@HOME:~# gimp
gimp: symbol lookup error: /usr/lib/libgtk-x11-2.0.so.0: undefined symbol: g_dpgettext
root@HOME:~#

gegechris99 01-20-2009 03:30 PM

Did you create a user or are you running applications as root?

To add a new user, it's preferable to run command:

Code:

adduser chris
Change "chris" to your own user id.

You will be prompted at each step and most importantly at the step for additional groups use the UP arrow to get the recommended additional groups (audio, cdrom, plugdev, video). Don't forget to add also group "lp" to be able to use the printer.

exsencon 01-20-2009 04:08 PM

Yes,I was root when I did that,in the meanwhile I added a user but the problem is the same. For gimp I get exactly the same output as I got in root. When I click on the Firefox icon in KDE it start to dance a little and that's all (just an example)
All I got so far is my scroll mouse working editing it in xorg.conf(adding zaxismapping 4 5)
No sound,just the same message as in my previous post

gegechris99 01-20-2009 04:28 PM

What is the result of:

Code:

ldd /usr/bin/gimp
Is there any shared libraries missing or any error?

I've done some googling and it seems that the error is related to x86_64 platform and GTK+2 (slackware 12.2 comes with version 2.12.12).

Can you use KDE applications (Kedit, Kwrite, Kword...)?

If you have a 64bits architecture, I'm not sure of the implication because Slackware is for 32bits architecture.

There are some Slackware distributions for 64Bits architectures (BTW not officially supported by Slackware):

slamd64
bluewhite64

exsencon 01-20-2009 04:50 PM

it's a lot of output but I see nothing missing and certainly no errors and yes I can use Kwrite and Kword.
Now since I made a user I cannot revert to root, i get this:

zeger@HOME:~$ su (right away without asking for password)
su: incorrect password
or:

zeger@HOME:~$ sudo su
Password:
zeger is not in the sudoers file. This incident will be reported.

slack12 was better I think even without the printer!

gegechris99 01-21-2009 03:58 AM

Quote:

Originally Posted by exsencon (Post 3415497)
Now since I made a user I cannot revert to root, i get this:

zeger@HOME:~$ su (right away without asking for password)
su: incorrect password

You must enter the root password. Here it only says that you entered the wrong password (maybe you typed twice and the ENTER key so you skip the password entry request)

Regarding the errors for gimp and firefow, try to reinstall the gtk+2 package, go to the "slackware/l" directory of the first CD and then run as root:

Code:

upgradepkg --reinstall gtk+2-2.12.12-i486-1.tgz
Regarding the no sound issue, what is your sound card?
You need to check whether the kernel sound modules have been loaded:

Check loaded modules:
Code:

lsmod

exsencon 01-21-2009 08:56 AM

I did a full reinstallation of slack12.2 with the same problems.
No sound,several apps (gimp,firefox etc)not working. the thing that works is the printer.
I tried to reinstall the gtk package,he cannot find the installation path. Here is what I get:

root@HOME:~# upgradepkg --reinstall ~/media/SlackDVD/slackware/l/gtk+2-2.12.12-i486-1.tgz

Error: incoming package /root/media/SlackDVD/slackware/l/gtk+2-2.12.12-i486-1.tgz not found.


Now I can see the package in the DVD and I can see the path which I believe is correct.

The sound card is an integrated Intel HD audio controller and worked very well with Slack12. I did a lsmod for that,this should be the sound modules:


Module Size Used by
snd_seq_dummy 6788 0
snd_seq_oss 33408 0
snd_seq_midi_event 10240 1 snd_seq_oss
snd_seq 50928 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device 10380 3 snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss 40480 0
snd_mixer_oss 17920 1 snd_pcm_oss

snd_hda_intel 367756 0
i2c_i801 12688 0
snd_pcm 70788 2 snd_pcm_oss,snd_hda_intel
intel_agp 29116 0
dcdbas 10912 0
snd_timer 23176 2 snd_seq,snd_pcm
snd_page_alloc 11400 2 snd_hda_intel,snd_pcm
snd_hwdep 10756 1 snd_hda_intel
agpgart 32584 1 intel_agp
evdev 13088 3
snd 51748 9 snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_hda_intel,snd_pcm,snd_timer,snd_hwd ep
soundcore 10080 1 snd

So I think everything is there but it won't work.


All times are GMT -5. The time now is 09:42 PM.