0

I saw xcffib is a prerequisite so I tried to install it with:

~# pip install xcffib

But I got this error message and I don't understand what 'cc' is, I installed gcc.

Update:

I tried to export the location of my libffi-dev headers

#echo $LIBFFI_LIBS 
-L/opt/csw/lib -lffi
#echo $LIBFFI_CFLAGS
-I/opt/csw/lib/libffi-3.2.1/include

And runing

CC="gcc -std=gnu99" pip install xcffib

or

CC="gcc -std=gnu99" pip install cffi

still doesn't find the header: fatal error: ffi.h: No such file or director

osmingo
  • 994
  • 1
  • 8
  • 16
  • I would try `CC="gcc -std=gnu99 -I/opt/csw/lib/libffi-3.2.1/include"` – jlliagre Feb 10 '17 at 10:14
  • The output of that command is here http://pastebin.com/asFF93gM – osmingo Feb 10 '17 at 10:21
  • 1
    Looks like `pip` insist using the Studio compiler (`cc`) and not the Gnu one (`gcc`). This link might help you: http://stackoverflow.com/questions/37833267/what-repository-needs-to-be-enabled-for-sun-studio-12-5 – jlliagre Feb 10 '17 at 10:38
  • I installed the studio compiler 12.4 and it worked, thank you – osmingo Feb 10 '17 at 12:51
  • Thanks for the update, converting my comment to an answer to help future people having the same issue. – jlliagre Feb 10 '17 at 12:59

1 Answers1

3

It looks like pip and/or cairocffi are expecting the Oracle Studio compiler to be installed.

Installing it fixes the issue you are having.

Community
  • 1
  • 1
jlliagre
  • 29,783
  • 6
  • 61
  • 72