Pip install of ibm_db fails

1,348 views
Skip to first unread message

Michael Elgart

unread,
Nov 21, 2014, 11:42:45 AM11/21/14
to ibm...@googlegroups.com
I've been trying to install ibm_db on RHEL 6.5 after installing DB2, but pip keeps giving errors. Here is the end of the error print out.  Is there any insight on what to do here?

error: command 'gcc' failed with exit status 1

----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools;__file__='/tmp/pip_build_root/ibm-db/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-Jd8u62-record/install-record.txt --single-version-externally-managed failed with error code 1 in /tmp/pip_build_root/ibm-db
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in <module>
load_entry_point('pip==1.4.1', 'console_scripts', 'pip')()
File "/usr/lib/python2.6/site-packages/pip-1.4.1-py2.6.egg/pip/__init__.py", line 148, in main
return command.main(args[1:], options)
File "/usr/lib/python2.6/site-packages/pip-1.4.1-py2.6.egg/pip/basecommand.py", line 169, in main
text = '\n'.join(complete_log)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 25: ordinal not in range(128)

Praveen

unread,
Nov 21, 2014, 11:53:59 AM11/21/14
to ibm...@googlegroups.com
Hi Michael,

Looks like you are missing some development packages. http://stackoverflow.com/questions/17931726/ascii-codec-cant-decode-error-when-use-pip-to-install-uwsgi

Could you install the necessary packages and see if you are able to install ibm_db egg successfully.

Thanks

Praveen

Michael Elgart

unread,
Nov 21, 2014, 12:32:12 PM11/21/14
to ibm...@googlegroups.com
Hey Praveen thanks for the input.  I have installed python-devel and libevent prior to getting this error (I also found that stackoverflow page).  I couldn't actually find a yum package called libevent-devel, just libevent. If that's the problem, do you know where I could find libevent-devel?

I also found a suggestion on stackoverflow that too little RAM on a machine could cause a bug in the python package installer, but doubling the RAM on my VM (where this environment is) didn't change the error.

Michael Elgart

unread,
Nov 21, 2014, 4:27:33 PM11/21/14
to ibm...@googlegroups.com
I tried posting earlier, but it looks like it didn't get through.

Thanks for your input Praveen. Prior to encountering this error, I already installed pythen-devel (I had already found the same stackoverflow page).  However, I could only install a package called libevent, not libevent-devel.  "yum list" didn't come up with anything called libevent-devel. If this might be causing the issue, do you know where I could find the correct package?

I also found a separate stackoverflow that suggested a lack of RAM could cause a bug in the package installer, but that doesn't seem to be the case either. I expanded the RAM on my VM and checked again with no change in the error message.

Thanks,
Michael


On Friday, November 21, 2014 11:53:59 AM UTC-5, Praveen wrote:

Praveen

unread,
Nov 21, 2014, 10:25:07 PM11/21/14
to ibm...@googlegroups.com
Hi Michael,

I see the rpm packages for libevent-devel for RedHat EL here http://rpm.pbone.net/index.php3/stat/4/idpl/25391455/dir/redhat_el_6/com/libevent-devel-2.0.19-1.rhel6.x86_64.rpm.html

From the error and description on some of the forums about the errors it is likely that libevent-devel could be causing the problem. Try installing the above package and see if it goes through.

Thanks

Praveen

Michael Elgart

unread,
Nov 24, 2014, 4:02:02 PM11/24/14
to ibm...@googlegroups.com
 Thanks for your help Praveen.  I found the solution, I did not have the correct DB2 Data Server Driver installed. Once that was correct, the install for ibm_db worked great.
Reply all
Reply to author
Forward
0 new messages