Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sh: 1: rlpr: not found #85

Open
elioker opened this issue Dec 7, 2022 · 1 comment
Open

sh: 1: rlpr: not found #85

elioker opened this issue Dec 7, 2022 · 1 comment

Comments

@elioker
Copy link

elioker commented Dec 7, 2022

Hi,

I was testing the code from "Printing the labels" but it gives me sh: 1: rlpr: not found error.

require_relative '/var/lib/gems/2.7.0/gems/zebra-zpl-1.1.4/lib/zebra/zpl'

label = Zebra::Zpl::Label.new(
    width:      200,
    length:     200,
    print_speed:3
)

barcode = Zebra::Zpl::Barcode.new(
    data:                       '12345678',
    position:                   [50, 50],
    height:                     50,
    print_human_readable_code:  true,
    narrow_bar_width:           4,
    wide_bar_width:             8,
    type:                       Zebra::Zpl::BarcodeType::CODE_128_AUTO
)

label << barcode

print_job = Zebra::PrintJob.new "my printer name in CUPS"

ip = "my-printer-ip" 

print_job.print label, ip

I'm not sure if the temp file with label is not creating and that's why this problem occurs. Could you help me?

@mtking2
Copy link
Collaborator

mtking2 commented Dec 7, 2022

Do you have rlpr installed on your machine?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants