Skip to content

sh: 1: rlpr: not found #85

@elioker

Description

@elioker

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions