HP Color LaserJet 1600 :  foo2zjs - foo2hp - foo2xqx - foo2lava - foo2qpdl - foo2oak
Support for linux printer drivers
The fastest message board... ever.
 
foo2zjs on 10.11.1: chmod 755 /usr/bin: Operation not permitted
Posted by: odyssey ()
Date: October 29, 2015 05:46PM

Hello :)

I'm about to get my HP CLJ 1600 working on 10.11.1, this is where I'm at:
- installed GPL Ghostscript 9.16 (2015-03-30) via macports
- ditto gsed-4.2.2_0.darwin_15.x86_64
- installed foomatic-rip-4.0.6.230 via the .dmg installer
- foo2zjs > make
- ./getweb 1600

After this, while running make install, installing the dependencies fails as follows:
<snip>
# Installation Dependencies...
#
# ... OK!
#
#
# Install driver, wrapper, and development tools
#
install -d /usr/bin
install: chmod 755 /usr/bin: Operation not permitted
install -c foo2zjs zjsdecode arm2hpdl foo2hp foo2xqx xqxdecode foo2lava lavadecode foo2qpdl qpdldecode opldecode foo2oak oakdecode foo2slx slxdecode foo2hiperc hipercdecode foo2hbpl2 hbpldecode gipddecode command2foo2lava-pjl foo2zjs-wrapper foo2oak-wrapper foo2hp2600-wrapper foo2xqx-wrapper foo2lava-wrapper foo2qpdl-wrapper foo2slx-wrapper foo2hiperc-wrapper foo2hbpl2-wrapper foo2zjs-pstops printer-profile /usr/bin/
install: /usr/bin//foo2zjs: Operation not permitted
make: *** [install-prog] Error 71

There's an issue with chmodding /usr/bin, but I lack the expertise how to deal with it. Whatever the cause may be, I need expert help to get on with it. If GS 9.16 is a bad choice (I've read the warnings here) anyway, please point me to the best version compatible with 10.11(.1) and I'll be happy to un- then reinstall with the appropriate version.

Please help!
Thanks in advance and thanks for creating such a great project suite,
Pat



Edited 2 time(s). Last edit at 10/29/2015 05:49PM by odyssey.

Options: ReplyQuote
Re: foo2zjs on 10.11.1: chmod 755 /usr/bin: Operation not permitted
Posted by: rickrich ()
Date: October 29, 2015 06:20PM

Did you do su first?
Compile:
    $ make

Get .ICM profiles for color correction.
    $ ./getweb 1600      # Get HP LaserJet 1600 .ICM files

Install driver, foomatic XML files, and extra files:
    $ su		OR	$ sudo make install
    # make install

(Optional) If you use CUPS, restart the spooler:
    # make cups		OR	$ sudo make cups



Edited 1 time(s). Last edit at 10/29/2015 06:21PM by rickrich.

Options: ReplyQuote
Re: foo2zjs on 10.11.1: chmod 755 /usr/bin: Operation not permitted
Posted by: odyssey ()
Date: October 29, 2015 06:27PM

Sorry Rick, I didn't, I used sudo. For the record, Mac users need to
sudo su
otherwise su won't do. That being the reason why I went for sudo (lesson learned, thanks!). But with su the error remains:
sh-3.2# make install
#
# Dependencies...
#
# ... OK!
#
cd icc2ps; /Applications/Xcode.app/Contents/Developer/usr/bin/make all
make[1]: Nothing to be done for `all'.
cd osx-hotplug; /Applications/Xcode.app/Contents/Developer/usr/bin/make all
make[1]: Nothing to be done for `all'.
cd icc2ps; /Applications/Xcode.app/Contents/Developer/usr/bin/make man
make[1]: Nothing to be done for `man'.
cd osx-hotplug; /Applications/Xcode.app/Contents/Developer/usr/bin/make man
make[1]: Nothing to be done for `man'.

It is possible that [blah] …yourself.
#
# Installation Dependencies...
#
# ... OK!
#
#
# Install driver, wrapper, and development tools
#
install -d /usr/bin
install: chmod 755 /usr/bin: Operation not permitted
install -c foo2zjs zjsdecode arm2hpdl foo2hp foo2xqx xqxdecode foo2lava lavadecode foo2qpdl qpdldecode opldecode foo2oak oakdecode foo2slx slxdecode foo2hiperc hipercdecode foo2hbpl2 hbpldecode gipddecode command2foo2lava-pjl foo2zjs-wrapper foo2oak-wrapper foo2hp2600-wrapper foo2xqx-wrapper foo2lava-wrapper foo2qpdl-wrapper foo2slx-wrapper foo2hiperc-wrapper foo2hbpl2-wrapper foo2zjs-pstops printer-profile /usr/bin/
install: /usr/bin//foo2zjs: Operation not permitted
make: *** [install-prog] Error 71

:(



Edited 1 time(s). Last edit at 10/29/2015 06:28PM by odyssey.

Options: ReplyQuote
Re: foo2zjs on 10.11.1: chmod 755 /usr/bin: Operation not permitted
Posted by: rickrich ()
Date: October 29, 2015 06:33PM

$ ssh mac
Last login: Thu Oct 29 12:29:20 2015 from quad
$ su
Password:
sh-3.2# install -d /usr/bin
sh-3.2#

Works here.

sh-3.2# ls -ld /usr/bin /usr/bin/foo2zjs
drwxr-xr-x 1136 root wheel 38624 Oct 24 16:25 /usr/bin
-rwxr-xr-x 1 root wheel 81156 Oct 24 16:25 /usr/bin/foo2zjs



Edited 1 time(s). Last edit at 10/29/2015 06:36PM by rickrich.

Options: ReplyQuote
Re: foo2zjs on 10.11.1: chmod 755 /usr/bin: Operation not permitted
Posted by: odyssey ()
Date: October 29, 2015 06:38PM

laptop:foo2zjs laptop$ ssh mac
ssh: Could not resolve hostname mac: nodename nor servname provided, or not known
laptop:foo2zjs laptop$ sudo su
sh-3.2# install -d /usr/bin
install: chmod 755 /usr/bin: Operation not permitted

Doesn't work here. Is this something 10.11.x specific, the "rootless" feature of El Cap? In any case, could you please help me find a way to continue installing foo2zjs?

Edit:
sh-3.2# ls -ld /usr/bin /usr/bin/foo2zjs
ls: /usr/bin/foo2zjs: No such file or directory
drwxr-xr-x 1055 root wheel 35870 28 Okt 10:37 /usr/bin

/usr/bin/foo2zjs doesn't exist. And I am unable to create it:
sh-3.2# mkdir /usr/bin/foo2zjs
mkdir: /usr/bin/foo2zjs: Operation not permitted



Edited 4 time(s). Last edit at 10/29/2015 06:43PM by odyssey.

Options: ReplyQuote
Re: foo2zjs on 10.11.1: chmod 755 /usr/bin: Operation not permitted
Posted by: odyssey ()
Date: October 29, 2015 06:50PM

http://apple.stackexchange.com/questions/193368/what-is-the-rootless-feature-in-el-capitan-really

Quote
Gordon Davisson
Here's what it restricts, even from root:

You can't modify anything in /System, /bin, /sbin, or /usr (except /usr/local); or any of the built-in apps and utilities. Only Installer and software update can modify these areas, and even they only do it when installing Apple-signed packages. But since normal OS X-style customizations go in /Library (or ~/Library, or /Applications), and unix-style customizations (e.g. Homebrew) go in /usr/local (or sometimes /etc or /opt), this shouldn't be a big deal. It also prevents block-level writes to the startup disk, so you can't bypass it that way.

The full list of restricted directories (and exceptions like /usr/local and a few others) is in /System/Library/Sandbox/rootless.conf. Of course, this file is itself in a restricted area.

When you upgrade to El Capitan, it moves any "unauthorized" files from restricted areas to /Library/SystemMigration/History/Migration-(some UUID)/QuarantineRoot/.



If you don't want these restrictions -- either because you want to modify your system beyond what this allows, or because you're developing & debugging something like kexts that aren't practical under these restrictions, you can turn SIP off. Currently this requires rebooting into recovery mode and running the command csrutil disable (and you can similarly reenable it with csrutil enable).

=> I'll boot into Recovery Mode and run csrutil disable, then retry the installation procedure. Will report once this is done.



Edited 1 time(s). Last edit at 10/29/2015 06:52PM by odyssey.

Options: ReplyQuote
Re: foo2zjs on 10.11.1: chmod 755 /usr/bin: Operation not permitted
Posted by: rickrich ()
Date: October 29, 2015 06:54PM


Options: ReplyQuote
Re: foo2zjs on 10.11.1: chmod 755 /usr/bin: Operation not permitted
Posted by: odyssey ()
Date: October 29, 2015 07:09PM

That was it, now install -d passed without a hitch. Thanks for guiding me through this. Maybe it's worthwhile to add this in the readme files, for future reference of 10.11.x users.



Edited 1 time(s). Last edit at 10/29/2015 07:34PM by odyssey.

Options: ReplyQuote
Re: foo2zjs on 10.11.1: chmod 755 /usr/bin: Operation not permitted
Posted by: odyssey ()
Date: October 29, 2015 07:20PM

Not quite there yet … I could install the printer via Printer Utility, I can see print jobs (text only for quick testing purposes) show up, being sent to the printer and the get cleared, but the printer itself remains silent. Removed it via Printer Utility and set it up in CUPS instead, still no dice. No pages sent from any application like Text Edit nor Safari (or any other application) show up, neither test pages sent directly from the CUPS admin pages.

Here's what CUPS says about it in the browser admin panel:
Driver: HP Color LaserJet 1600 Foomatic/foo2hp (recommended) (color, 2-sided printing)
Connection: usb://Hewlett-Packard/HP%20Color%20LaserJet%201600?serial=JV40CXK
Defaults: job-sheets=none, none media=iso_a4_210x297mm sides=one-sided

Creating the printer anew returns:
E [30/Oct/2015:00:48:57 +0100] [cups-driverd] Bad driver information file "/usr/share/cups/model/foomatic-db-ppds/Kyocera/ReadMe.htm"!
E [30/Oct/2015:00:48:58 +0100] [cups-driverd] Bad driver information file "/usr/share/cups/model/foomatic-db-ppds/Kyocera/ReadMe.htm"!

/usr/share/cups/model features
-rw-rw-r-- 1 root wheel 7388 29 Okt 23:57 HP-Color_LaserJet_1600.ppd.gz

/usr/share/cups/model/foomatic-db-ppds/HP features
-rw-r--r-- 1 paco staff 9716 19 Aug 22:52 HP_DesignJet_1050C_PS3.ppd.gz
-rw-r--r-- 1 paco staff 9732 19 Aug 22:52 HP_DesignJet_1055CM_PS3.ppd.gz
-rw-r--r-- 1 paco staff 9269 19 Aug 22:52 HP_DesignJet_2500CP_PS3.ppd.gz
-rw-r--r-- 1 paco staff 9631 19 Aug 22:52 HP_DesignJet_3500CP_PS3.ppd.gz
-rw-r--r-- 1 paco staff 9662 19 Aug 22:52 HP_Designjet_5000_PS3.ppd.gz
-rw-r--r-- 1 paco staff 9228 19 Aug 22:52 HP_Designjet_5500_PS3.ppd.gz
-rw-r--r-- 1 paco staff 9092 19 Aug 22:52 HP_Designjet_800_PS3.ppd.gz
-rw-r--r-- 1 paco staff 10236 19 Aug 22:52 hp_officejet_9100_series.ppd.gz

Kyocera? Now I've come so far, failing at the last 2" … :/



Edited 7 time(s). Last edit at 10/29/2015 07:58PM by odyssey.

Options: ReplyQuote
Re: foo2zjs on 10.11.1: chmod 755 /usr/bin: Operation not permitted
Posted by: odyssey ()
Date: October 30, 2015 08:41PM

Rick, do you have any suggestions to solve the no output issue? Please?

Options: ReplyQuote
Re: foo2zjs on 10.11.1: chmod 755 /usr/bin: Operation not permitted
Posted by: rickrich ()
Date: October 30, 2015 10:09PM

Its a CUPS problem. My driver filters postscript to zjs. CUPS does the plumbing. I would run CUPS in debug mode and see what is going on. I am not a CUPS expert.

Options: ReplyQuote


Sorry, only registered users may post in this forum.
This forum powered by Phorum.