[reportlab-users] cannot install reportlab using easy_install
Marco Bizzarri
marco.bizzarri at gmail.com
Sun Apr 26 05:50:02 EDT 2009
On Sun, Apr 26, 2009 at 10:33 AM, Sorin Sbarnea <sorin.sbarnea at gmail.com> wrote:
> I discovered that "easy_install reportlab" fails on Centos, here is the error
>
> [root at vm srv]# easy_install reportlab
> Searching for reportlab
> Reading http://cheeseshop.python.org/pypi/reportlab/
> Reading http://www.reportlab.com/
> Reading http://cheeseshop.python.org/pypi/reportlab/2.3
> Best match: reportLab 2.3
> Downloading http://pypi.python.org/packages/source/r/reportlab/reportLab-2.3.zip#md5=7d98b26fa287a9e4be4d35d682ce64ac
> Processing reportLab-2.3.zip
> Running ReportLab_2_3/setup.py -q bdist_egg --dist-dir
> /tmp/easy_install-NDV26e/ReportLab_2_3/egg-dist-tmp-XgCI0L
> ################################################
> #Attempting install of _rl_accel, sgmlop & pyHnj
> #extensions from '/tmp/easy_install-NDV26e/ReportLab_2_3/src/rl_addons/rl_accel'
> ################################################
> ################################################
> #Attempting install of _renderPM
> #extensions from '/tmp/easy_install-NDV26e/ReportLab_2_3/src/rl_addons/renderPM'
> # installing without freetype no ttf, sorry!
> ################################################
> /tmp/easy_install-NDV26e/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:
> In function ‘hex32’:
> /tmp/easy_install-NDV26e/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:793:
> warning: format ‘%8.8X’ expects type ‘unsigned int’, but argument 5
> has type ‘long unsigned int’
> /tmp/easy_install-NDV26e/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:
> In function ‘_instanceStringWidthU’:
> /tmp/easy_install-NDV26e/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:1200:
> warning: pointer targets in assignment differ in signedness
> /tmp/easy_install-NDV26e/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:1123:
> warning: ‘f’ may be used uninitialized in this function
> /tmp/easy_install-NDV26e/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:1123:
> warning: ‘t’ may be used uninitialized in this function
> /tmp/easy_install-NDV26e/ReportLab_2_3/src/rl_addons/rl_accel/_rl_accel.c:1123:
> warning: ‘L’ may be used uninitialized in this function
> /usr/bin/ld: cannot find -l_renderPM_libart
> collect2: ld returned 1 exit status
> error: Setup script exited with error: command 'gcc' failed with exit status 1
>
Making a wild guess: your gcc is newer than the one used to check
reportlab. The newer version could be more strict than the previous
ones.
You could post the version of gcc (gcc -v) so that people at reportlab
can diagnose the problem more properly.
Even though I'm not an expert of easy_install, if you've older
versions of gcc installerd, maybe you could try to force it to use an
older version using an "export CC=/usr/bin/gcc-<something>"; however,
I'm not sure this will not cause troubles with python itself. Again,
making guesses.
Regards
Marco
--
Marco Bizzarri
http://notenotturne.blogspot.com/
http://iliveinpisa.blogspot.com/
More information about the reportlab-users
mailing list