Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
zlib error
2018-05-15, 08:00
Post: #1
zlib error
I have tried and tried to make this work. I have tried to bypass the need to run make in order to use this program, as running the make command results in an error. I keep getting this error at the end of the make command within the src folder:
quote-
[BUILD] bin/hyperv.ids.o
[AR] bin/blib.a
ar: creating bin/blib.a
[HOSTCC] util/zbin
util/zbin.c:7:18: fatal error: lzma.h: No such file or directory
#include <lzma.h>
^
compilation terminated.
Makefile.housekeeping:1294: recipe for target 'util/zbin' failed
make: *** [util/zbin] Error 1
-end quote

I have all the required dependencies installed and I am trying to run this on a debian jessie install. I have found a few posts about this error from 2012 and it was noted to amend the make command with NO_WERROR=1 but this does not change the result. It still fails.

I have tried to create my own files at https://rom-o-matic.eu/ and can't get it to work. I am really confused about doing the simplest thing with this program, but I shall keep trying. This is what I would like to do.

A little background - I have a fully functioning PXE server with both the http and tftp daemons, with several grub entries serving up several different systems from both iso files and squashfs files (like gparted). It works fine because I have access to the router running dhcp and I can amend the dhcp.conf file to set the next-server and file information for other systems to boot from. I even created my own live version of debian to pxe boot. Again, it works fine.

Need to do - On another corporate network, I need to use a usb device to point the boot information to a specific ip address on a LAN (and/or WAN), because I will not have access to the router or the dhcp server. Can this be done with iPXE? From reading, and more reading, it seems like it would be easy but I am having no luck at all.

What I have done - I have successfully created a usb boot device with grub installed, and I can boot the ipxe.iso file from it. But from there I am brain locked and can't get past this.

Any help with the error message above and/or a way around this to make it work would be very appreciated. Thank you.
Find all posts by this user
Quote this message in a reply
2018-05-15, 18:27
Post: #2
RE: zlib error
(2018-05-15 08:00)charlesjacob4695 Wrote:  util/zbin.c:7:18: fatal error: lzma.h: No such file or directory
....
I have all the required dependencies installed and I am trying to run this on a debian jessie install.

This is due to missing dependencies specifically liblzma headers.
As indicated at http://ipxe.org/download#source_code "liblzma or xz header files" is needed.

Quick google shows liblzma-dev as the package that you want on jessie. (might be wrong, but that is what shows up)

(2018-05-15 08:00)charlesjacob4695 Wrote:  Need to do - On another corporate network, I need to use a usb device to point the boot information to a specific ip address on a LAN (and/or WAN), because I will not have access to the router or the dhcp server. Can this be done with iPXE? From reading, and more reading, it seems like it would be easy but I am having no luck at all.

Yes, iPXE can use static ip or dhcp without bootp support. However many have issues running grub from it. I would migrate any and all grub configs to use iPXE menues and scripts instead.

(2018-05-15 08:00)charlesjacob4695 Wrote:  What I have done - I have successfully created a usb boot device with grub installed, and I can boot the ipxe.iso file from it. But from there I am brain locked and can't get past this.

So you have a built iPXE?
using the iPXE shell you can run dhcp to get an ip, and then use chain to boot whatever other "next binary" that is suitable for the platform.

Basics of iPXE scripting can be found at http://ipxe.org/scripting ... the search function on ipxe.org should be able to guide you to most of the information you need here, otherwise just ask here on the forum, or on IRC.

Read the FAQ before posting.
Did you include relevant ipxe.org error urls?
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)