Printer installation/KonicaMinolta 2300w/Alien fejlmeling

Søger du et bestemt program? Mangler du et alternativ til dit Windowsprogram? Program-spørgsmål kan stilles her.
Henning.J
Indlæg: 93
Tilmeldt: 18. feb 2008, 18:18

Printer installation/KonicaMinolta 2300w/Alien fejlmeling

Indlæg af Henning.J »

Hej.

Jeg er ved at (forsøge) at installere min Minolta magicolor 2300w printer på min 8.04 maskine.
Hvis jeg bare gør det vha Printerkonfiguration/Ny printer er det ikke muligt at vælge 2300w (2300 DL er IKKE det samme, det virker i hvert fald ikke)

Jeg har så fundet en driver i .rpm-format, som skal konverteres til .deb, så vidt jeg kan forstå. Jeg har nu prøvet nedenstående, og havde åbenbart glemt "--script".
Men når jeg så forsøger med det siger den at den ikke kan fordi mappen eksisterer, og så vil den ikke lade mig slette mappen m2300w-0.51 fordi den siger at jeg ikke har brugerettigheder.


henning@ooo-linux:~/Skrivebord$ sudo alien -i m2300w-0.51-1.i386.rpm
Warning: Skipping conversion of scripts in package m2300w: postinst preinst
Warning: Use the --scripts parameter to include the scripts.
Package build failed. Here's the log:
dh_testdir
dh_testdir
dh_testroot
dh_clean -k -d
dh_installdirs
dh_installdocs
dh_installchangelogs
parsechangelog/debian: warning: debian/changelog(l7): badly formatted heading line
LINE: Added support for the 2400W printer model which was contributed
parsechangelog/debian: warning: debian/changelog(l8): found change data where expected next heading or eof
LINE: by Thomas Rohringer.
Can't locate object method "init" via package "Dpkg::Changelog::Entry" at /usr/share/perl5/Dpkg/Changelog/Debian.pm line 260, <STDIN> line 8.
dpkg-parsechangelog: failure: changelog parser /usr/lib/dpkg/parsechangelog/debian gave error exit status 9
dh_installchangelogs: changelog parse failure
make: *** [binary-arch] Fejl 1
find: m2300w-0.51: No such file or directory

Tak for hjælp,
Henning
Senest rettet af Henning.J 7. jun 2008, 12:05, rettet i alt 1 gang.
Stra
Indlæg: 3105
Tilmeldt: 16. jun 2007, 10:26
Geografisk sted: Ikast-Herning

Re: Alien fejlmeling/sletning af mappe

Indlæg af Stra »

Henning.J skrev:Hej.


Men når jeg så forsøger med det siger den at den ikke kan fordi mappen eksisterer, og så vil den ikke lade mig slette mappen m2300w-0.51 fordi den siger at jeg ikke har brugerettigheder.



Kode: Vælg alt

sudo rmdir /mappe/mappe/m2300w-0.51
.. virker det ikke?


Stra
stra
Bruger Ubuntu 22.04 og 22.10 + lubuntu 22.10
Henning.J
Indlæg: 93
Tilmeldt: 18. feb 2008, 18:18

Re: Alien fejlmeling/sletning af mappe

Indlæg af Henning.J »

Jeg fik mappen fjernet ved hjælp af

Kode: Vælg alt

sudo rm -r m2300w-0.51



men det virker stadig ikke:

Kode: Vælg alt

henning@ooo-linux:~/Skrivebord$ sudo alien --scripts -i m2300w-0.51-1.i386.rpm
Package build failed. Here's the log:
dh_testdir
dh_testdir
dh_testroot
dh_clean -k -d
dh_installdirs
dh_installdocs
dh_installchangelogs
parsechangelog/debian: warning:     debian/changelog(l7): badly formatted heading line
LINE: Added support for the 2400W printer model which was contributed
parsechangelog/debian: warning:     debian/changelog(l8): found change data where expected next heading or eof
LINE:   by Thomas Rohringer.
Can't locate object method "init" via package "Dpkg::Changelog::Entry" at /usr/share/perl5/Dpkg/Changelog/Debian.pm line 260, <STDIN> line 8.
dpkg-parsechangelog: failure: changelog parser /usr/lib/dpkg/parsechangelog/debian gave error exit status 9
dh_installchangelogs: changelog parse failure
make: *** [binary-arch] Fejl 1
find: m2300w-0.51: No such file or directory


Så vidt jeg har forstået skulle -i få alien til at installere driveren, men det ser ud til at den løber ind i en "parse failure" inden.

Er der nogen der kan overskue det?

mvh
Henning
Henning.J
Indlæg: 93
Tilmeldt: 18. feb 2008, 18:18

Re: Printer installation/KonicaMinolta 2300w/Alien fejlmeling

Indlæg af Henning.J »

Er der nogen der har en idé om hvordan jeg kan få denne printer til at fungere?

På forhånd tak,
Henning
Henning.J
Indlæg: 93
Tilmeldt: 18. feb 2008, 18:18

Re: Printer installation/KonicaMinolta 2300w/Alien fejlmeling

Indlæg af Henning.J »

Nu har jeg prøver følgende:

1. Make sure that all prerequisites are installed (see above)

2. Download m2300w-<version>.tar.gz from
http://sourceforge.net/project/showfile ... _id=108751

3. Unpack the archive:

$ tar zxvf m2300w-<version>.tar.gz
or
$ gzip -dc m2300w-<version>.tar.gz | tar xvf -
(if you are not using GNU tar)

4. Enter the top-level directory and run "configure"

$ cd m2300w-<version>
$ ./configure

5. Run make

$ make

6. Install the files (needs to be done as root)

$ su
Password: ********
# make install

7. Run cups config to install a new printer

If you are upgrading from a previous version of the m2300w
driver, then REMOVE all printer queues which are associated
with the m2300w driver and reinstall them from the scratch.


og det jeg får ud af det er:

Kode: Vælg alt

henning@ooo-linux:~/Skrivebord$ sudo tar zxvf m2300w-0.51.tar.gz
[sudo] password for henning:
m2300w-0.51/
m2300w-0.51/psfiles/
m2300w-0.51/psfiles/CHP410-1200-AutoColor.crd
m2300w-0.51/psfiles/prolog.ps
m2300w-0.51/psfiles/screen2400.ps
m2300w-0.51/psfiles/screen1200.ps
m2300w-0.51/psfiles/Makefile.in
m2300w-0.51/psfiles/CHP410-1200-Photo-kh.crd
m2300w-0.51/psfiles/CHP410-1200-Photo.crd
m2300w-0.51/psfiles/defrgb-builtin.csa
m2300w-0.51/psfiles/CHP410-1200-Draft.crd
m2300w-0.51/psfiles/defrgb-AdobeRGB.csa
m2300w-0.51/psfiles/defrgb-sRGB.csa
m2300w-0.51/psfiles/defrgb-gimp-print.csa
m2300w-0.51/psfiles/epilogue.ps
m2300w-0.51/COPYING
m2300w-0.51/INSTALL
m2300w-0.51/README.ghostscript
m2300w-0.51/Makefile.in
m2300w-0.51/m2300w.spec.in
m2300w-0.51/install-sh
m2300w-0.51/configure.in
m2300w-0.51/foomatic/
m2300w-0.51/foomatic/printer/
m2300w-0.51/foomatic/printer/Minolta-magicolor_2400W.xml
m2300w-0.51/foomatic/printer/Minolta-magicolor_2300W.xml
m2300w-0.51/foomatic/foomatic-rip
m2300w-0.51/foomatic/Makefile.in
m2300w-0.51/foomatic/driver/
m2300w-0.51/foomatic/driver/m2300w.xml
m2300w-0.51/foomatic/driver/m2400w.xml
m2300w-0.51/foomatic/opt/
m2300w-0.51/foomatic/opt/m2300w-psnup.xml
m2300w-0.51/foomatic/opt/m2300w-PrintoutMode.xml
m2300w-0.51/foomatic/opt/m2300w-Quality.xml
m2300w-0.51/foomatic/opt/m2300w-ColorProfile.xml
m2300w-0.51/foomatic/opt/m2300w-MediaType.xml
m2300w-0.51/foomatic/opt/m2300w-Debug.xml
m2300w-0.51/foomatic/opt/m2300w-PageSize.xml
m2300w-0.51/foomatic/opt/m2300w-ColorMode.xml
m2300w-0.51/foomatic/opt/m2300w-Resolution.xml
m2300w-0.51/foomatic/opt/m2300w-DefaultRGB.xml
m2300w-0.51/configure
m2300w-0.51/README
m2300w-0.51/aclocal.m4
m2300w-0.51/src/
m2300w-0.51/src/m2300w-wrapper.in
m2300w-0.51/src/m2400w.c
m2300w-0.51/src/m2300w.c
m2300w-0.51/src/Makefile.in
m2300w-0.51/ppd/
m2300w-0.51/ppd/magicolor_2400W-m2400w.ppd
m2300w-0.51/ppd/Makefile.in
m2300w-0.51/ppd/magicolor_2300W-m2300w.ppd
henning@ooo-linux:~/Skrivebord$ sudo rm -r m2300w-0.51
henning@ooo-linux:~/Skrivebord$ sudo tar zxvf m2300w-0.51.tar.gz
m2300w-0.51/
m2300w-0.51/psfiles/
m2300w-0.51/psfiles/CHP410-1200-AutoColor.crd
m2300w-0.51/psfiles/prolog.ps
m2300w-0.51/psfiles/screen2400.ps
m2300w-0.51/psfiles/screen1200.ps
m2300w-0.51/psfiles/Makefile.in
m2300w-0.51/psfiles/CHP410-1200-Photo-kh.crd
m2300w-0.51/psfiles/CHP410-1200-Photo.crd
m2300w-0.51/psfiles/defrgb-builtin.csa
m2300w-0.51/psfiles/CHP410-1200-Draft.crd
m2300w-0.51/psfiles/defrgb-AdobeRGB.csa
m2300w-0.51/psfiles/defrgb-sRGB.csa
m2300w-0.51/psfiles/defrgb-gimp-print.csa
m2300w-0.51/psfiles/epilogue.ps
m2300w-0.51/COPYING
m2300w-0.51/INSTALL
m2300w-0.51/README.ghostscript
m2300w-0.51/Makefile.in
m2300w-0.51/m2300w.spec.in
m2300w-0.51/install-sh
m2300w-0.51/configure.in
m2300w-0.51/foomatic/
m2300w-0.51/foomatic/printer/
m2300w-0.51/foomatic/printer/Minolta-magicolor_2400W.xml
m2300w-0.51/foomatic/printer/Minolta-magicolor_2300W.xml
m2300w-0.51/foomatic/foomatic-rip
m2300w-0.51/foomatic/Makefile.in
m2300w-0.51/foomatic/driver/
m2300w-0.51/foomatic/driver/m2300w.xml
m2300w-0.51/foomatic/driver/m2400w.xml
m2300w-0.51/foomatic/opt/
m2300w-0.51/foomatic/opt/m2300w-psnup.xml
m2300w-0.51/foomatic/opt/m2300w-PrintoutMode.xml
m2300w-0.51/foomatic/opt/m2300w-Quality.xml
m2300w-0.51/foomatic/opt/m2300w-ColorProfile.xml
m2300w-0.51/foomatic/opt/m2300w-MediaType.xml
m2300w-0.51/foomatic/opt/m2300w-Debug.xml
m2300w-0.51/foomatic/opt/m2300w-PageSize.xml
m2300w-0.51/foomatic/opt/m2300w-ColorMode.xml
m2300w-0.51/foomatic/opt/m2300w-Resolution.xml
m2300w-0.51/foomatic/opt/m2300w-DefaultRGB.xml
m2300w-0.51/configure
m2300w-0.51/README
m2300w-0.51/aclocal.m4
m2300w-0.51/src/
m2300w-0.51/src/m2300w-wrapper.in
m2300w-0.51/src/m2400w.c
m2300w-0.51/src/m2300w.c
m2300w-0.51/src/Makefile.in
m2300w-0.51/ppd/
m2300w-0.51/ppd/magicolor_2400W-m2400w.ppd
m2300w-0.51/ppd/Makefile.in
m2300w-0.51/ppd/magicolor_2300W-m2300w.ppd
henning@ooo-linux:~/Skrivebord$ cd m2300w-0.51
henning@ooo-linux:~/Skrivebord/m2300w-0.51$ ./configure
./configure: 94: cannot create conftest.sh: Permission denied
./configure: 94: cannot create conftest.sh: Permission denied
chmod: cannot access `conftest.sh': No such file or directory
./configure: line 85: conftest.sh: Permission denied
./configure: line 86: conftest.sh: Permission denied
chmod: cannot access `conftest.sh': No such file or directory
./configure: line 196: conf7211.file: Permission denied
./configure: line 866: config.log: Permission denied
henning@ooo-linux:~/Skrivebord/m2300w-0.51$ sudo ./configure
checking for gcc... gcc
checking for C compiler default output... configure: error: C compiler cannot create executables
henning@ooo-linux:~/Skrivebord/m2300w-0.51$ make install
make: *** Ingen regel til at skabe mål 'install'. Stop.
henning@ooo-linux:~/Skrivebord/m2300w-0.51$ su
Password:
su: Authentication failure
henning@ooo-linux:~/Skrivebord/m2300w-0.51$ sudo # make install
usage: sudo -h | -K | -k | -L | -l | -V | -v
usage: sudo [-bEHPS] [-p prompt] [-u username|#uid] [VAR=value]
            {-i | -s | <command>}
usage: sudo -e [-S] [-p prompt] [-u username|#uid] file ...


Det er ikkke hlet nemt for mig at overskue. Er der nogen der kan?

Måske er linien

Kode: Vælg alt

checking for C compiler default output... configure: error: C compiler cannot create executables

vigtig?

På forhånd tak,
Henning
Stra
Indlæg: 3105
Tilmeldt: 16. jun 2007, 10:26
Geografisk sted: Ikast-Herning

Re: Printer installation/KonicaMinolta 2300w/Alien fejlmeling

Indlæg af Stra »

Henning.J skrev:Måske er linien

Kode: Vælg alt

checking for C compiler default output... configure: error: C compiler cannot create executables

vigtig?

Henning


Har du prøvet at installere ccontrol fra synaptic? for at se, om det giver en forskel.


Stra
stra
Bruger Ubuntu 22.04 og 22.10 + lubuntu 22.10
Henning.J
Indlæg: 93
Tilmeldt: 18. feb 2008, 18:18

Re: Printer installation/KonicaMinolta 2300w/Alien fejlmeling

Indlæg af Henning.J »

Hej.

Det gav ikke noget med ccontrol, men installation af libc6-dev gav:

Kode: Vælg alt

henning@ooo-linux:~/Skrivebord/m2300w-0.51$ sudo ./configure
[sudo] password for henning:
checking for gcc... gcc
checking for C compiler default output... configure: error: C compiler cannot create executables
henning@ooo-linux:~/Skrivebord/m2300w-0.51$
henning@ooo-linux:~/Skrivebord/m2300w-0.51$ gcc
gcc: ingen inddatafiler
henning@ooo-linux:~/Skrivebord/m2300w-0.51$ sudo ./configure
[sudo] password for henning:
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets ${MAKE}... yes
checking for floor in -lm... yes
checking for gzip... /bin/gzip
checking for cups/model/... no
checking for gs... /usr/bin/gs
testing /usr/bin/gs...
GPL Ghostscript 8.61 (2007-11-21)
Copyright (C) 2007 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Version=861
ok
checking for foomatic-rip... /usr/bin/foomatic-rip
checking for foomatic-ppdfile... /usr/bin/foomatic-ppdfile
checking for foomatic/db/... /usr/share/foomatic/db
configure: creating ./config.status
config.status: creating Makefile
config.status: creating m2300w.spec
config.status: creating src/Makefile
config.status: creating src/m2300w-wrapper
config.status: creating ppd/Makefile
config.status: creating psfiles/Makefile
config.status: creating foomatic/Makefile
henning@ooo-linux:~/Skrivebord/m2300w-0.51$ make
for DIR in src psfiles foomatic ppd; do (cd $DIR; make all); done
make[1]: Går til katalog '/home/henning/Skrivebord/m2300w-0.51/src'
gcc -g -O2 -o m2300w m2300w.c -lm
/usr/bin/ld: cannot open output file m2300w: Permission denied
collect2: ld returnerede afslutningskoden 1
make[1]: *** [m2300w] Fejl 1
make[1]: Forlader katalog '/home/henning/Skrivebord/m2300w-0.51/src'
make[1]: Går til katalog '/home/henning/Skrivebord/m2300w-0.51/psfiles'
make[1]: Ingenting at gøre for 'all'.
make[1]: Forlader katalog '/home/henning/Skrivebord/m2300w-0.51/psfiles'
make[1]: Går til katalog '/home/henning/Skrivebord/m2300w-0.51/foomatic'
make[1]: Ingenting at gøre for 'all'.
make[1]: Forlader katalog '/home/henning/Skrivebord/m2300w-0.51/foomatic'
make[1]: Går til katalog '/home/henning/Skrivebord/m2300w-0.51/ppd'
make[1]: Ingenting at gøre for 'all'.
make[1]: Forlader katalog '/home/henning/Skrivebord/m2300w-0.51/ppd'
henning@ooo-linux:~/Skrivebord/m2300w-0.51$ su
Password:
su: Authentication failure



Dvs at jeg er nået til punkt 6 ovenfor, men den vil ikke acceptere mit password.


Jeg prøver så

Kode: Vælg alt

henning@ooo-linux:~/Skrivebord/m2300w-0.51$ sudo make install
rm -rf /usr/share/m2300w/crd
for DIR in src psfiles foomatic ppd; do (cd $DIR; make INSTROOT= install); done
make[1]: Går til katalog '/home/henning/Skrivebord/m2300w-0.51/src'
gcc -g -O2 -o m2300w m2300w.c -lm
gcc -g -O2 -o m2400w m2400w.c -lm
chmod 755 m2300w-wrapper
rm -f /usr/bin/m2300w /usr/bin/m2300w_wrapper
/usr/bin/install -c -d -m 755 /usr/bin
/usr/bin/install -c -d -m 755 /usr/share/m2300w/0.51
for P in m2300w m2400w m2300w-wrapper ; do \
       /usr/bin/install -c -m 755 $P /usr/bin; \
   done
make[1]: Forlader katalog '/home/henning/Skrivebord/m2300w-0.51/src'
make[1]: Går til katalog '/home/henning/Skrivebord/m2300w-0.51/psfiles'
/usr/bin/install -c -d -m 755 /usr/share/m2300w/0.51/psfiles
for F in prolog.ps epilogue.ps screen1200.ps screen2400.ps defrgb-AdobeRGB.csa defrgb-builtin.csa defrgb-gimp-print.csa defrgb-sRGB.csa CHP410-1200-Photo.crd CHP410-1200-Photo-kh.crd CHP410-1200-AutoColor.crd CHP410-1200-Draft.crd ; do \
       /usr/bin/install -c -m 644 $F /usr/share/m2300w/0.51/psfiles; \
   done
make[1]: Forlader katalog '/home/henning/Skrivebord/m2300w-0.51/psfiles'
make[1]: Går til katalog '/home/henning/Skrivebord/m2300w-0.51/foomatic'
rm -rf /usr/share/foomatic/db/source/opt/m2300w-*.xml
for DIR in opt driver printer ; do \
       /usr/bin/install -c -d -m 755 /usr/share/foomatic/db/source/$DIR ; \
       for F in $DIR/*.xml ; do \
      /usr/bin/install -c -m 644 $F /usr/share/foomatic/db/source/$DIR ; \
       done ; \
   done
/usr/bin/install -c -d -m 755 /usr/share/m2300w/0.51/foomatic
/usr/bin/install -c -m 755 foomatic-rip /usr/share/m2300w/0.51/foomatic
make[1]: Forlader katalog '/home/henning/Skrivebord/m2300w-0.51/foomatic'
make[1]: Går til katalog '/home/henning/Skrivebord/m2300w-0.51/ppd'
# remove stuff left over from old 0.1 driver
rm -f /usr/share/cups/model/Minolta/2300w.ppd
rm -f /usr/share/cups/model/Minolta/2300w.ppd.gz
rm -f /usr/share/cups/model/minolta/2300w.ppd
rm -f /usr/share/cups/model/minolta/2300w.ppd.gz
/usr/bin/install -c -d -m 755 /usr/share/cups/model/Minolta; \
   /usr/bin/install -c -m 644 magicolor_2300W-m2300w.ppd /usr/share/cups/model/Minolta; \
   /usr/bin/install -c -m 644 magicolor_2400W-m2400w.ppd /usr/share/cups/model/Minolta; \
   /usr/bin/install -c -d -m 755 /usr/share/YaST2/data/printerdb
/usr/bin/install -c -m 644 magicolor_2300W-m2300w.ppd /usr/share/YaST2/data/printerdb
/usr/bin/install -c -m 644 magicolor_2400W-m2400w.ppd /usr/share/YaST2/data/printerdb
if test -z "" -a -x /etc/init.d/cups ; then \
       if ps -ef | grep -v grep | grep /usr/sbin/cupsd >/dev/null ; then \
      /etc/init.d/cups restart ; \
       fi ; \
   fi
************************************************************
*** Please remove all printer queues which are associated
*** with the m2300w driver from your spooler's configuartion
*** and reinstall them from the scratch
************************************************************
make[1]: Forlader katalog '/home/henning/Skrivebord/m2300w-0.51/ppd'
/usr/bin/install -c -c -d -m 755 /usr/share/doc/m2300w-0.51
/usr/bin/install -c -c -m 644 README README.ghostscript INSTALL COPYING /usr/share/doc/m2300w-0.51
henning@ooo-linux:~/Skrivebord/m2300w-0.51$


og så bliver man glad, lige indtil

Kode: Vælg alt

henning@ooo-linux:~/Skrivebord/m2300w-0.51$ cups config
bash: cups: command not found


Googling viste at der manglede en bindestreg:

Kode: Vælg alt

henning@ooo-linux:~/Skrivebord/m2300w-0.51$ cups-config
The program 'cups-config' is currently not installed.  You can install it by typing:
sudo apt-get install libcupsys2-dev
bash: cups-config: command not found


Kode: Vælg alt

henning@ooo-linux:~/Skrivebord/m2300w-0.51$ sudo apt-get install libcupsys2-dev
E: Kunne ikke opnå låsen /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?


Efter genstart af computeren

Kode: Vælg alt

henning@ooo-linux:~/Skrivebord/m2300w-0.51$ cups-config
Usage: cups-config --api-version
       cups-config --cflags
       cups-config --datadir
       cups-config --help
       cups-config --ldflags
       cups-config [--image] [--static] --libs
       cups-config --serverbin
       cups-config --serverroot
       cups-config --version


Jeg syntes at det så lidt tomt ud, men tændte for printeren, og kunne udskrive.

HOKUS POKUS

Take home message:
Hvis man ikke kan compilere et C-program kan det være at libc6-dev mangler

Er der nogen der kan fortælle mig hvorfor su ikke ville acceptere mit password?
Og hvad var det lige der skete med cups config/cups-config? Mente de i virkeligheden bare System/Adminitration/Udskrift?

Tak for støtte og muntre tilråb
Henning