Comments (6)
I am in Red Hat Enterprise Linux (RHEL 5.4)
and I have both python2.4 and python2.6
here were what I done:
0] yum install python26
1] yum install freetds
2] python2.6 ez_setup.py
3] easy_install-2.6 cython
4] easy_install-2.6 pymssql
I got ->
Downloading http://pymssql.googlecode.com/files/pymssql-1.9.908.win32.zip
Processing pymssql-1.9.908.win32.zip
error: Couldn't find a setup script in
/tmp/easy_install-s3UIdY/pymssql-1.9.908.win32.zip
<-
5] easy_install-2.6 http://pymssql.googlecode.com/files/pymssql-1.9.908.tar.gz
I got ->
gcc: _mssql.c: No such file or directory
gcc: no input files
error: Setup script exited with error: command 'gcc' failed with exit status 1
<-
6] wget http://pymssql.googlecode.com/files/pymssql-1.9.908.tar.gz
7] tar zxvf pymssql* && cd pymssql*
8] python2.6 setup.py build
I got ->
/root/for-python/pymssql-1.9.908/_mssql.pyx:1286:26: undeclared name not builtin: strlen
building '_mssql' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -fPIC
-I/usr/local/include -I/usr/local/include/freetds -I/usr/include
-I/usr/include/freetds -I/usr/include/freetds_mssql
-I/usr/local/freetds/include -I/usr/pkg/freetds/include
-I/usr/include/python2.6 -c _mssql.c -o build/temp.linux-i686-2.6/_mssql.o
-DMSDBLIB
_mssql.c:1:2: error: #error Do not use this file, it is the result of a failed
Cython compilation.
error: command 'gcc' failed with exit status 1
<-
I almost crying :-(
I did not have /usr/local/include/freetds /usr/include /usr/include/freetds
/usr/include/freetds_mssql /usr/local/freetds/include /usr/pkg/freetds/include
and I hadn't found anything like freetds_mssql ....
what's wrong ??
please help :-(
Original comment by [email protected]
on 26 Nov 2010 at 7:24
from pymssql.
Original comment by [email protected]
on 8 Mar 2011 at 3:35
- Added labels: PyMssql-2.x
from pymssql.
I had this exact same issue
0] yum install python26
1] yum install freetds freetds-devel
2] python2.6 ez_setup.py
3] easy_install-2.6 cython
4] yum install mercurial (if you don't already have it)
5] Download latest subversion of pymssql
# hg clone https://pymssql.googlecode.com/hg/ pymssql
6] cd pymssql; python26 setup.py build
7] python26 setup.py install
5] pymssql
Original comment by [email protected]
on 4 May 2011 at 2:55
from pymssql.
I guess, the first question is, where is the file:
libsybdb.so.5
on these systems? Also, this will eventually be a mute point as we are
planning on bundling FreeTDS w/ future versions of pymssql. However, we are
not there yet.
Original comment by [email protected]
on 4 May 2011 at 3:40
from pymssql.
I have same issue. I found my libsybdb.so.5 in /usr/local/lib and create
symlink in /usr/lib, rerun ldconfig and all fixed :)
#find / -type f -name libsybdb.so.5
/usr/local/lib/libsybdb.so.5
#ln -s /usr/local/lib/libsybdb.so.5 /usr/lib/libsybdb.so.5
#ldconfig
Original comment by [email protected]
on 26 Oct 2011 at 3:50
from pymssql.
FreeTDS is now bundled. That should resolve this issue (but unfortunately
creates other issues on CentOS).
Original comment by [email protected]
on 8 Mar 2012 at 2:58
- Changed state: Fixed
from pymssql.
Related Issues (20)
- Failure to pass Unicode characters to callproc; failing test: tests.test_sprocs.TestCallProcFancy.testCallProcWithUnicodeStringWithRussianCharacters HOT 7
- When pymssql.connect() - DB-Lib error message 20002, severity 9;Adaptive Server connection failed HOT 1
- Fix test_config.py typos. HOT 1
- Small fix about TDS protocol version in a comment HOT 1
- Fix a small bug in SP tests HOT 3
- Fix SP name handling in threaded test so we can actually run it. HOT 2
- Feature for discussion (with patch): pymssql_shell HOT 2
- A few tests fail if running on a system that has SQL Server available on port 1433 HOT 1
- add function for getting FreeTDS version HOT 1
- datetime conversion to sql is not converting sub-seconds correctly HOT 5
- memory leaks (patches included) HOT 24
- pymssql-2.0.0b1-dev-20130403.tar.gz doesn't compile due to /usr/bin/ld: cannot find -lct HOT 8
- Installer issue HOT 1
- error: unrecognized command line option "-Wno-parentheses-equality" HOT 8
- pymssql.so: undefined symbol: __fread_chk HOT 5
- Support "with" statement (PEP 343) HOT 5
- Can't compile on OS X 10.8.4 HOT 10
- Review pymssql result processing code
- Make Cython not necessary when pymssql.c and _mssql.c are already present HOT 1
- IOError: [Errno 2] No such file or directory: 'ChangeLog_highlights.rst' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pymssql.