Community Page
- panthar.org Jump to website »
-
Subscribe -
Community
-
Top Commenters
-
Popular Threads
-
Recent Comments
- emoved a vial of super glue from his lab coat pocket and began to sniff it
- Подтверждаю.
- Super glue is toxic, we user a "Moment" instead
- А ещё русские мучают жуков.
- Всё это ПИЗДЁЖЬ!!!
Panthar's Lair
Adventures of a Professional Computer Tamer
I recently set up an Ubuntu server that needed to access a MSSQL database. The php5-sybase package sort of worked (the queries appeared to work, but data was missing). So, I set out to build some .deb packages with MSSQL support built in.
First make sure you have the Debian package deve ... Continue reading »
First make sure you have the Debian package deve ... Continue reading »
3 years ago
I would appreciate your help very much, indeed.
3 years ago
3 years ago
2 years ago
Do I need to uninstall php5 before installing this custom version?
If not, how do I let dpkg/apt/synaptic know that I don't want to overwrite my custom php5 when a php5 update hits the ubuntu repositories?
Thanks,
Robert Aldridge
2 years ago
To keep this from being upgraded automatically, you should "pin" it. There is a good reference for that over at: http://www.debian.org/doc/manuals/apt-howto/ch-...
2 years ago
I get the question marks in the html source as well.
What I'm getting on ubuntu box:
ALFKI - Alfreds Futterkiste - Maria Anders
ANATR - Ana Trujillo Emparedados y helados - Ana Trujillo
ANTON - Antonio Moreno Taquer?a - Antonio Moreno
AROUT - Around the Horn - Thomas Hardy
BERGS - Berglunds snabbk?p - Christina Berglund
What I should get (I get this when run on windows):
ALFKI - Alfreds Futterkiste - Maria Anders
ANATR - Ana Trujillo Emparedados y helados - Ana Trujillo
ANTON - Antonio Moreno TaquerÃa - Antonio Moreno
AROUT - Around the Horn - Thomas Hardy
BERGS - Berglunds snabbköp - Christina Berglund
2 years ago
I had this too. The solution is to add the line client charset = UTF-8 to the freetds.conf.file
I use a windows 2k server so I had
[MyServer2k]
host = 192.168.1.14
port = 1433
tds version = 8.0
client charset = UTF-8
2 years ago
when I write apt-get build-dep php5
I have a problem of dependancies. What will I have to do ?
Thank you
2 years ago
Thank you, it saved our team masses of time...
2 years ago
2 years ago
2 years ago
root@linux:~/php5-5.1.6# dpkg-buildpackage
dpkg-buildpackage: source package is php5
dpkg-buildpackage: source version is 5.1.6-1ubuntu2.1
dpkg-buildpackage: source changed by Martin Pitt
dpkg-buildpackage: host architecture i386
dpkg-buildpackage: source version without epoch 5.1.6-1ubuntu2.1
dpkg-checkbuilddeps: error: per-package paragraph 23 in control info file is missing Package line
dpkg-buildpackage: Build dependencies/conflicts unsatisfied; aborting.
dpkg-buildpackage: (Use -d flag to override.)
2 years ago
root@linux:~/php5-5.1.6# dpkg-buildpackage
dpkg-buildpackage: source package is php5
dpkg-buildpackage: source version is 5.1.6-1ubuntu2.1
dpkg-buildpackage: source changed by Martin Pitt
dpkg-buildpackage: host architecture i386
dpkg-buildpackage: source version without epoch 5.1.6-1ubuntu2.1
debian/rules clean
: No such file or directory
'. Stop. No rule to make target `
I think i'm going to try and use an older verison of PHP.
2 years ago
Matt: If you move up to the parent folder the php5-mssql extension should have been built anyway, just install it with dpkg -i, worked perfectly for me!
2 years ago
I did exactly as you describe above, but while running "dpkg-buildpackage" I get the following error:
configure: error: unrecognized option: -–with-mssql=shared,/usr
Try `../configure --help' for more information.
make: *** [configure-apache2-stamp] Error 1
Any suggestion?
Thank you!
2 years ago
This is a much *cleaner* way than I was going to do it... compiling all from source and manually figuring out the dependencies... say 3-6 hours of work getting things right, as opposed to 15-30 minutes.
Once again - much thanks!
2 years ago
2 years ago
[CODE]
=/usr/share/file/magic.mime --with-exec-dir=/usr/lib/php5/libexec \
--without-mm \
--with-curl=shared,/usr \
--with-zlib-dir=/usr \
--with-gd=shared,/usr --enable-gd-native-ttf \
--with-jpeg-dir=shared,/usr \
--with-xpm-dir=shared,/usr/X11R6 \
--with-png-dir=shared,/usr \
--with-freetype-dir=shared,/usr \
--with-ttf=shared,/usr \
--with-t1lib=shared,/usr \
--with-ldap=shared,/usr \
--with-mhash=shared,/usr \
--with-mssql=shared,/usr \
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type:
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking build system type... i486-pc-linux-gnu
checking host system type... i486-pc-linux-gnu
checking target system type... config.sub: missing argument
Try `config.sub --help' for more information.
configure: error: /bin/sh ../config.sub failed
make: *** [configure-apache2-stamp] Error 1
[/CODE]
2 years ago
The next line must follow without an intervening blank line, and not as shown in the article as below.
Package: php5-mssql
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, ${php:Depends}, php5-common (= ${Source-Version})
..............
Remove the blank line and it works.
Perhaps the article could be amended to make this clear.
I would also add my voice the the question, why can't Ubuntu build this into the source as standard? It is a pain (even with the excellent instructions of this article) to have to go back and recompile it every so often to allow for other upgrades to the php5 package.
2 years ago
2 years ago
Thanks a lot for this, very useful guide and easy to follow up.
2 years ago
Great Job.
2 years ago
-- Installed the newly compiled packages
dpkg -i php5-mysql_5.1.6-1ubuntu2.4_i386.deb
dpkg -i php5-mysqli_5.1.6-1ubuntu2.4_i386.deb
-- Restarted Apache services
/etc/init.d/apache2 restart
This is all on Ubuntu 6.10 Server setup with LAMP during installation. Next I tried to run the follow script to test this, of course I plugged in my server's IP Address and login info, plus a valid database and table.:
", "sa", "");
mssql_select_db ("", $con);
$sql= "SELECT * FROM ";
$rs= mssql_query ($sql, $con);
echo "The field number one is: ";
echo mssql_result ($rs, 0, 0);
mssql_close ($con);
?
And now here's what I get:
Fatal error: Call to undefined function mssql_connect() in /home/webuser/public_html/test.php on line 4
Any suggestions? Is there anyway to to verify the new packages are installed correctly?
Thanks for any suggestions.
Sam Alexander
samalex@gmail.com
2 years ago
Thanks --
Sam
2 years ago
I noticed that you installed "dpkg -i php5-mysql_5.1.6-1ubuntu2.4_i386.deb".
You need to install the .deb with "mssql" in the name, not "mysql", if you need to get mssql functionality.
It gets built into its own package, not bundled in with mysql.
Hope this solves your problem!
-Robert
2 years ago
1 year ago
I'm getting "configure: error: recode extension can not be configured together with: imap mysql". Apt-get remove php5-imap says the package is not installed. Any help would be greatly appreciated.
Thanks
1 year ago
Great article, by the way. I've been trying to figure out how to compile GMP with PHP5 in Ubuntu to create a PHP5-GMP package, and this worked perfectly.
1 year ago
1 year ago
tkn@tkn-laptop:~$ sudo apt-get source php5
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to find a source package for php5
tkn@tkn-laptop:~$
Any ideas?
(I'm running Ubuntu 7.10)
1 year ago
1 year ago
Regarding the "And go get something to eat." part: On my machine (2 CPUS, 350MHz each, 320MB of RAM) the "eating" part takes over 3 (nearly 4) hours :)))
1 year ago
1 year ago
1 year ago
(I'm running Ubuntu 7.10 server with LAMP installed - this is a fresh install, so there's not much else on it.) Linux is a pretty fresh install in my head too.
When I run `$ sudo apt-get build-dep php5` I get the following errors:
E: Package libsnmp10-dev has no installation candidate
E: Failed to process build dependencies
I had ignored this and proceeded with the rest of the instructions (which are well written and easy to follow - thanks!) so when I ran `sudo dpkg-buildpackage` I got the following:
dpkg-checkbuilddeps: Unmet build dependencies: [...list omitted...]
dpkg-buildpackage: Build dependencies/conflicts unsatisfied; aborting.
Any suggestions?
1 year ago
I entered:
$ sudo apt-get install libsnmp-dev
...then tied this again:
$ sudo apt-get build-dep php5
...and followed the rest of the instructions and everything worked! I was very glad to have an excellent guide. Thanks Robert!
1 year ago
1 year ago
The debian build directory in PowerPC 6.06.x is:
/usr/bin/php5-5.2.4/debian
If editing with vi, while in the rules file, use the command "yy" to YANK the mysql line and the "p" command to copy it again. Edit the copied line. This will help preserve formatting, whitespace, tabs, returns, linefeeds, etc.