Printers :: compiling printer driver



In attempting to compile a printer driver, I'm unable to generate the MAKE file, with an error message about needing a Python Interpreter (after running ./configure --prefix=/usr ).
I loaded Gcc as the compiler, and then attempted to install Python. The Python directory loaded in /opt, so it appears to be installed. Any ideas? Thanks.

jpeters, my guess is that you need to add the python bin directory to your PATH variable.  There are a two way to do this.  The first is to open a shell and type:

export PATH=/opt/python/bin:$PATH

This puts the python/bin directory in your PATH variable which is a list of directories that the system searches in to find a command.  That's your best bet since I'm sure you're running your configure command from an xterminal anyway.  Type the above and then run configure in the same terminal window.

The other way would be to run the command as

/opt/python/bin/python

but you would need to edit the configure to make that work.

Thanks Clacker, that worked. The next error I get is "Checking for usb_init in -lusb...no" "Can't find libusb support."
Any ideas on how to install that?  Thanks

clacker knows more about this than I do so you might want to wait for his reply.  However, I have gotten this same error when trying to build some product (not sure which now). I googled the source for the library, built and installed the library and that seemed to work for me.
When I try to build something and I get a missing library error, I usually look at the debian package search.  Then when I find the library, I get the package with the -dev on the end because it contains the headers you need.  Ithink you're looking for  "libusb-dev" so load the dsl-dpkg.dsl package and run:

sudo apt-get update
sudo aprt-get install  libusb-dev

Next Page...
original here.