buserror / simavr

simavr is a lean, mean and hackable AVR simulator for linux & OSX
GNU General Public License v3.0
1.58k stars 368 forks source link

Error while installing #212

Closed wenhuizhang closed 7 years ago

wenhuizhang commented 7 years ago
client-104-39-67-216:simavr--git WenhuiZhang$ brew install --HEAD simavr
==> Installing simavr from osx-cross/avr
==> Cloning https://github.com/buserror/simavr.git
Updating /Users/WenhuiZhang/Library/Caches/Homebrew/simavr--git
==> Checking out branch master
==> make install DESTDIR=/usr/local/Cellar/simavr/HEAD-1ae1912 HOMEBREW_PREFIX=/usr/local RELEASE=1
Last 15 lines from /Users/WenhuiZhang/Library/Logs/Homebrew/simavr/01.make:
/Applications/Xcode.app/Contents/Developer/usr/bin/make libsimavr run_avr
CC sim/sim_cmds.c
CC sim/sim_cycle_timers.c
CC sim/sim_avr.c
sim/sim_elf.c:32:10: fatal error: 'libelf.h' file not found
#include <libelf.h>
         ^
1 error generated.
make[2]: *** [obj-x86_64-apple-darwin16.4.0/sim_elf.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CC sim/sim_hex.c
CC sim/sim_core.c
CC sim/sim_gdb.c
make[1]: *** [all] Error 2
make: *** [install] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/osx-cross/homebrew-avr/issues

Error: You have MacPorts or Fink installed:
  /opt/local/bin/port

This can cause trouble. You don't have to uninstall them, but you may want to
temporarily move them out of the way, e.g.

  sudo mv /opt/local ~/macports
buserror commented 7 years ago

Not a simavr bug