Closed snowlover173 closed 4 years ago
I have it working on RHEL... What does your bug look like?
@snowlover173 does pip install corels
not work?
It fails with cannot build the wheel with a lot of errors such as: corels/src/corels/rule.h:28:17: fatal error: gmp.h: No such file or directory.
corels/src/corels/cache.hh:53:136: required from here
/usr/include/c++/4.8.5/bits/stl_map.h:143:58: error: no type named ‘pointer’ in ‘std::map<short unsigned int, Node, std::less
@snowlover173 seems that your problem is not having GMP installed. Install GMP through your linux distro's package manager and try installing pycorels again.
it has gmp. I think the issue is gcc. I will try working on that to see what happens.
@snowlover173 I think you're using an older version of g++, which isn't supporting c++11. Try upgrading both gcc and g++ to the newest version (version 9, or 8 should work fine as well).
For the record I ran: yum install gcc72-c++
And ran: pip install corels and it worked.
Awesome! Glad it worked :D
Can I suggest one modification and/or alternate? I actually like to rely on my system Python libraries and my box already had setuptools
, numpy
and pytest
. But when I attempt to use pip
or pip3
it ends up re-downloading wheels for packages I already have.
Solution: python3 setup.py install
Maybe you could mention along with the line for pip
(which these on newer Ubuntu is probably meant to be pip3
).
Anyway, thanks for setting this up. It installs fine, and the examples run fine too. Ubuntu 19.10.
PS It may also help to mention git clone --recurse-submodules git@github.com:fingoldin/pycorels.git
right at the top or else the corels/src/corels/
directory may end up empty.
Hi How can I install it on Linux systems other than Ubuntu? It doesn't work.