Find the answer to your Linux question:
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 21
Where can I find instructions for compiling HPLIP? The script won't run so I have to use the tarball, which is a bunch of Python files that I don't know ...
  1. #1
    Just Joined!
    Join Date
    Apr 2008
    Location
    Ontario
    Posts
    76

    Exclamation Hplip

    Where can I find instructions for compiling HPLIP? The script won't run so I have to use the tarball, which is a bunch of Python files that I don't know what to do with.
    Any help or advice appreciated. This is the latest version of HPLIP.

    Peter

  2. #2
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,562
    Is the file you have a tar.gz? cd to the directory where this file is presently located. Then:
    Code:
    gunzip name_of_file.tar.gz
    Code:
    tar xvf name_of_file.tar
    After this, cd to inside the directory you just untarred:
    Code:
    cd name_of_untarred_directory
    Do:
    Code:
    ls
    This will show you the contents of the directory. You may see a file called "INSTALL." Open it with your favourite editor and read the instructions on how to compile. The "routine" way to compile packages from source, (but not always) is:
    Code:
    ./configure
    Code:
    make
    Code:
    make install
    The easiest and reccommended way to install packages on Debian is through apt-get. From the command line as su:
    Code:
    apt-get install hplip
    Last edited by Dapper Dan; 04-10-2008 at 11:21 AM.
    Linux Mint + IceWM Registered:#371367 New Members: click here

  3. #3
    Just Joined!
    Join Date
    Apr 2008
    Location
    Ontario
    Posts
    76

    Need to try apt

    Hello. Thanks for the advice, but I already tried all that and it just says "no such file or directory". I will try apt-get later.

    Thanks.

    Peter

  4. #4
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,562
    Then that likely means you are NOT in the same directory where hplip package is located. Firefox will download most files by default to the Desktop, so:
    Code:
    cd Desktop
    Then:
    Code:
    ls
    Is it there?
    If not, look in your home directory for it:
    Code:
    cd
    By default, "cd" by itself will put you back in your home directory. You must be inside the directory where the package is located to unzip, untar it, and inside the newly untarred directory to compile it. Gotta go. Good luck...
    Linux Mint + IceWM Registered:#371367 New Members: click here

  5. #5
    Just Joined!
    Join Date
    Apr 2008
    Location
    Ontario
    Posts
    76

    No Dir problem

    I know exactly where I DL'd and extracted it: /root
    I cd /root and then cd /HPLIP-X.X.X and then ./configure and I get "No such file or directory".

    Peter

  6. #6
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,562
    Is there an INSTALL file inside that directory? Did you read it? When you are inside the hplip directory, do "ls" and post what's in there please.

    EDIT: Better yet, post a link to the package of hplip you are trying to install. I'll download it and then can better advise you on how to install it.
    Linux Mint + IceWM Registered:#371367 New Members: click here

  7. #7
    Just Joined!
    Join Date
    Apr 2008
    Location
    Ontario
    Posts
    76

    Directory Listing

    DebianLinux:/home/pfeigl/Downloads/hplip-2.8.4# ls
    aclocal.m4 cherrypy configure.in fab.py hplip-install hpssd.py install.py makecopies.py plugins scan.py toolbox.py
    align.py clean.py copier fax hplip-install_Wed-09-Apr-2008_13:43:35.log index.html install-sh Makefile.am ppd sendfax.py ui
    base colorcal.py COPYING firmware.py hplip-install_Wed-09-Apr-2008_13:58:47.log index.html.1 io Makefile.in print.py setup.py unload.py
    bb_scan.inc config.guess data foomatic_drv.inc hplip-install_Wed-09-Apr-2008_14:05:46.log info.py ip makeuri.py prnt systray.py unreleased.inc
    check.py config.sub depcomp hplip.conf.in hplip-install_Wed-09-Apr-2008_14:06:51.log __init__.py levels.py missing probe.py testpage.py
    Cheetah configure doc hplip.desktop.in hplip-systray.desktop.in installer ltmain.sh pcard scan timedate.py
    DebianLinux:/home/pfeigl/Downloads/hplip-2.8.4#

    Sorry about the pathname. That's on my Slackbox. It won't install there either. I got HPLIP from sourceforge.

    Here is the URL: SourceForge.net: Files

    Thanks.

    Peter

  8. #8
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,562
    It's just like I thought:
    Code:
    gunzip hplip-2.8.4.tar.gz
    tar xvf hplip-2.8.4.tar
    cd hplip-2.8.4/
    As root:
    Code:
    ./configure
    make
    make install
    That's all there is to it unless you need to download the Debian build-essential package which you can do with apt-get. You still can install hplip with apt-get though. If it were me, I'd do it with apt-get.
    Linux Mint + IceWM Registered:#371367 New Members: click here

  9. #9
    Just Joined!
    Join Date
    Apr 2008
    Location
    Ontario
    Posts
    76

    Exclamation apt-get doesn't seem to work...

    Hi. I tried apt-get and got messages that everything was installed so I did this:

    DebianLinux:/home/pfeigl/Downloads# ls -l /etc/rc.d/ | grep hplip ; ls -l /etc/rc.d/ | grep cups
    ls: /etc/rc.d/: No such file or directory
    ls: /etc/rc.d/: No such file or directory
    DebianLinux:/home/pfeigl/Downloads#

    Do I have to do it the "hard" way or is something else amiss?

    Peter

  10. #10
    Just Joined!
    Join Date
    Apr 2008
    Location
    Ontario
    Posts
    76

    Exclamation Still no luck.

    I tried the gunzip method and when I try to run make i get:

    make: *** No targets specified and no makefile found. Stop.

    So, here I am. Lost in the Linux Wilderness...

    Peter

Page 1 of 3 1 2 3 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •