compiling problem

Asked by Pierre

In order to use HP laserjet 1000 I downloaded foo2zjs.tar.gz and extracted (tar -zxf foo2zjs.tar.gz). Then I went into foo2zjs (cd foo2zjs) ans I tried to compile: $ make. The system did not recognize this command and then with synaptic I loaded make and gcc. Then I retried $ make and got a long list of errors. What have I to do to succeed compiling ?
I am an absolute beginner in unix and I just dived into linux (ubuntu 6.06). one week ago. Pierre

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Onkar Shinde (onkarshinde) said :
#1

Short answer:
1. Make sure you have installed package 'build-essential' using synaptic
2. There must be some INSTALL file in the package you downloaded. Read it.
You should first do './configure'

Long answer:
Are you sure this printer is not supported out-of-box? How new is this model?

Revision history for this message
Lance Poore (lp-7413) said :
#2

You shouldn't have to compile the drivers for the HP laserjet 1000. The package is in the Ubuntu repositories please check your /etc/apt/sources.list and ensure that you have the following sections in each repository line main multiverse universe and restricted

All you should need to do after that is sudo apt-get install foo2zjs

Then you should have your printing support!

Revision history for this message
Pierre (pbvdc) said :
#3

Thanks for your answer.
I checked /etc/apt/ directory and I found a void directory named
sources.list.d and a file sources.list-eu-2006-7-26--21-43-52 with
comands starting with deb ... which are unknown to ubuntu (debian I
presume ?). Then apt-get install foo2zjs command does not work.
Pierre

Lance Poore wrote:
> Support request #1294 on Ubuntu changed:
> https://launchpad.net/distros/ubuntu/+ticket/1294
>
> Comment:
> You shouldn't have to compile the drivers for the HP laserjet 1000. The package is in the Ubuntu repositories please check your /etc/apt/sources.list and ensure that you have the following sections in each repository line main multiverse universe and restricted
>
> All you should need to do after that is sudo apt-get install foo2zjs
>
> Then you should have your printing support!
>
>
>

Revision history for this message
Pierre (pbvdc) said :
#4

I made sudo gedit /etc/apt/sources.list and I got the following :
> deb http://fr.archive.ubuntu.com/ubuntu/ dapper main restricted
> deb-src http://fr.archive.ubuntu.com/ubuntu/ dapper main restricted
>
> ## Major bug fix updates produced after the final release of the
> ## distribution.
> deb http://fr.archive.ubuntu.com/ubuntu/ dapper-updates main restricted
> deb-src http://fr.archive.ubuntu.com/ubuntu/ dapper-updates main restricted
>
> ## Uncomment the following two lines to add software from the 'universe'
> ## repository.
> ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
> ## team, and may not be under a free licence. Please satisfy yourself as to
> ## your rights to use the software. Also, please note that software in
> ## universe WILL NOT receive any review or updates from the Ubuntu security
> ## team.
> # deb http://fr.archive.ubuntu.com/ubuntu/ dapper universe
> # deb-src http://fr.archive.ubuntu.com/ubuntu/ dapper universe
>
> ## Uncomment the following two lines to add software from the 'backports'
> ## repository.
> ## N.B. software from this repository may not have been tested as
> ## extensively as that contained in the main release, although it includes
> ## newer versions of some applications which may provide useful features.
> ## Also, please note that software in backports WILL NOT receive any review
> ## or updates from the Ubuntu security team.
> # deb http://fr.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse
> # deb-src http://fr.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse
>
> # Line commented out by installer because it failed to verify:
> # deb http://security.ubuntu.com/ubuntu dapper-security main restricted
> # Line commented out by installer because it failed to verify:
> # deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted
> # deb http://security.ubuntu.com/ubuntu dapper-security universe
> # deb-src http://security.ubuntu.com/ubuntu dapper-security universe

  But apt-get install foo2zjs command does not work.
Pierre

Lance Poore wrote:
> Support request #1294 on Ubuntu changed:
> https://launchpad.net/distros/ubuntu/+ticket/1294
>
> Comment:
> You shouldn't have to compile the drivers for the HP laserjet 1000. The package is in the Ubuntu repositories please check your /etc/apt/sources.list and ensure that you have the following sections in each repository line main multiverse universe and restricted
>
> All you should need to do after that is sudo apt-get install foo2zjs
>
> Then you should have your printing support!
>
>
>

Revision history for this message
Lance Poore (lp-7413) said :
#5

This is very delayed and I apologize for taking 4 months to reply. I just now read through my support tickets, and seen that I hadn't help you finish the problem. You need to uncomment the lines that say universe and multiverse.. Also you probably want to uncomment the backports repositories. By uncommenting I mean to remove the "#" that starts a line in your /etc/apt/sources.list.

deb http://fr.archive.ubuntu.com/ubuntu/ dapper main restricted
 deb-src http://fr.archive.ubuntu.com/ubuntu/ dapper main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://fr.archive.ubuntu.com/ubuntu/ dapper-updates main restricted
deb-src http://fr.archive.ubuntu.com/ubuntu/ dapper-updates main restricted

## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://fr.archive.ubuntu.com/ubuntu/ dapper universe
# deb-src http://fr.archive.ubuntu.com/ubuntu/ dapper universe

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://fr.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse
# deb-src http://fr.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse

# Line commented out by installer because it failed to verify:
# deb http://security.ubuntu.com/ubuntu dapper-security main restricted
# Line commented out by installer because it failed to verify:
# deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted
# deb http://security.ubuntu.com/ubuntu dapper-security universe
# deb-src http://security.ubuntu.com/ubuntu dapper-security universe

If you will copy and paste or edit your /etc/apt/sources.list to be shown as above it should work in dapper.

If you have installed edgy then you can issue this command to change all occurrences of dapper to edgy in the sources.list file:

sudo sed -i 's/dapper/edgy/g' /etc/apt/sources.list

I only said that because I know that edgy has since been released, and I thought there was a slight possibility that you may have upgraded to edgy. If that is not the case then you should NOT issue that command unless you intentionally want to upgrade to edgy.

After making the changes to your sources.list you need to run the following commands:

sudo apt-get update

sudo apt-get dist-upgrade

Those two will update your package lists, and download any upgraded packages for your ubuntu install. Back to the original problem, the foo2zjs should now install.. Just try:

sudo apt-get install foo2zjs foomatic-db-engine

**note that I added the foomatic-db-engine because it simplifies the install of your specific printer**

I'm sorry for the long post, but hopefully its all the information you should need to get going with your problem. I'm so sorry I'm just now responding :(

Can you help with this problem?

Provide an answer of your own, or ask Pierre for more information if necessary.

To post a message you must log in.