Wednesday, October 22, 2014

Re: Installing django on red hat linux box

Take a look at the Software Collections (ver 1.1 works on RHEL 7)

http://developerblog.redhat.com/2013/01/28/software-collections-on-red-hat-enterprise-linux/


$ sudo yum install python33-python-devel
$ scl enable python33 bash

You can then install everything locally in your application user's home directory.

This snip is from a virtualenv build script. I use virtualenvs on my deployments.

$ curl https://bootstrap.pypa.io/get-pip.py | python3.3 - --user
$ echo 'export PATH=$HOME/.local/bin:$PATH' >> $HOME/.bash_profile
$ source ~/.bash_profile
$ which pip
/home/youruser/.local/bin/pip

$ pip install --user virtualenv virtualenvwrapper
$ echo 'source $HOME/.local/bin/virtualenvwrapper.sh' >> $HOME/.bash_profile
$ source ~/.bash_profile

K



On Wednesday, October 22, 2014 9:59:32 AM UTC-7, robert brook wrote:
I am a contractor in a large organziation.  They must have everything locked down.

I downloaded get-pip.py and got errors that seemed to be proxy, firewall security issues, that is why I fell back to implementing through setup.py
and ran into the header issues.

Thanks

On Wednesday, October 22, 2014 12:55:26 PM UTC-4, Pat Claffey wrote:
once I got pip sorted out it was really easy install django (just pip install django)  - so advise is to get pip working.  You will need it for other python packages also.

On Wednesday, October 22, 2014 5:12:10 PM UTC+1, robert brook wrote:

I have alot of experience installing packages on windows and mac and it goes very smoothly.
I do not have alot of experience doing the installs on a Linux box.

I am running into problems installing 4 packages.

The Lan team tried yum, but the basic django packages were not available.

Then I tried installing pip and I got proxy errors using the get-pip.py script

So I fell back to installing the dowloaded packages with the old standy  setup.py install which fails.

I am attaching the top of the log

Anyone have any suggestions how to proceed?

**************************

running install

running bdist_egg

running egg_info

writing pyodbc.egg-info/PKG-INFO

writing top-level names to pyodbc.egg-info/top_level.txt

writing dependency_links to pyodbc.egg-info/dependency_links.txt

reading manifest file 'pyodbc.egg-info/SOURCES.txt'

reading manifest template 'MANIFEST.in'

warning: no files found matching 'tests/*'

writing manifest file 'pyodbc.egg-info/SOURCES.txt'

installing library code to build/bdist.linux-x86_64/egg

running install_lib

running build_ext

building 'pyodbc' extension

gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPYODBC_VERSION=3.0.7 -I/usr/include/python2.6 -c /home/rbrook/pyodbc-3.0.7/src/pyodbcmodule.cpp -o build/temp.linux-x86_64-2.6/home/rbrook/pyodbc-3.0.7/src/pyodbcmodule.o -Wno-write-strings

In file included from /home/rbrook/pyodbc-3.0.7/src/pyodbcmodule.cpp:12:

/home/rbrook/pyodbc-3.0.7/src/pyodbc.h:41:20: error: Python.h: No such file or directory

/home/rbrook/pyodbc-3.0.7/src/pyodbc.h:42:25: error: floatobject.h: No such file or directory

/home/rbrook/pyodbc-3.0.7/src/pyodbc.h:43:24: error: longobject.h: No such file or directory

*********************



--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0543f7d8-fce6-458c-ac76-b7605145ef37%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment