Hello,
thanks for helping me with my previous problem. Here's the next :)
I'm trying to compile texvc so I can use <math>:
kern:~/mediawiki-1.1.0/math$ make ocamlopt -c texvc.ml File "texvc.ml", line 8, characters 14-27: Unbound value Digest.to_hex make: *** [texvc.cmx] Error 2
How might I solve this problem? The line in question is:
let md5 = Digest.to_hex (Digest.string outtex) in
Do I need to install any extra packages for this?
Thank you, Timwi
Oh, and P.S.: I got it to work on MySQL 3.2! SQL statements like this:
wfQuery("DELETE linkscc FROM linkscc,brokenlinks WHERE lcc_title=bl_from AND bl_to='{$ptitle}'", DB_WRITE);
are new in MySQL 4. I solved it by replacing it with something like this:
$ptitle = wfStrencode( $to->getPrefixedDBkey() ); $sql = "SELECT bl_from FROM brokenlinks WHERE bl_to='{$ptitle}'"; $res = wfQuery ($sql, DB_READ, $fname); if (wfNumRows ($res) != 0) { $inlst = ""; while ($obj1 = wfFetchObject ($res)) { if ($inlst != "") { $inlst = $inlst + ","; } $inlst = $inlst + $obj1->bl_from; } wfQuery("DELETE FROM linkscc WHERE lcc_pageid IN ({$inlst})", DB_WRITE); }
If anyone can see any obvious bug in this, let me know, but it seems that it's working quite fine! :-)
There was also one query where it was using "links" instead of "brokenlinks". It had two individual DELETE queries that I have merged into one. I believe that gives better performance, no? :-)
Timwi
Sorry, here's another (somewhat related) question. How do I make someone a sysop? How do I grant privileges to users?
Thanks, Timwi
On Thu, 29 Jan 2004 16:04:42 +0000, Timwi wrote:
Sorry, here's another (somewhat related) question. How do I make someone a sysop? How do I grant privileges to users?
You have run a sql query by hand. The lazy way i did it was to save 'sysop, developer' into a text file and upload it into the rights field of the user through phpmyadmin. It's a blob, so phpmyadmin won't let you edit it directly
Gabriel Wicke wrote:
On Thu, 29 Jan 2004 16:04:42 +0000, Timwi wrote:
Sorry, here's another (somewhat related) question. How do I make someone a sysop? How do I grant privileges to users?
You have run a sql query by hand. The lazy way i did it was to save 'sysop, developer' into a text file and upload it into the rights field of the user through phpmyadmin.
Thanks. I've looked at the user table and performed the following query: update user set user_rights='sysop,developer' where user_name='Timwi'; and that seems to have worked. Thank you! :)
Timwi
On Jan 29, 2004, at 07:36, Timwi wrote:
I'm trying to compile texvc so I can use <math>:
kern:~/mediawiki-1.1.0/math$ make ocamlopt -c texvc.ml File "texvc.ml", line 8, characters 14-27: Unbound value Digest.to_hex make: *** [texvc.cmx] Error 2
What version of ocaml is installed? The one in debian-stable *doesn't work*.
3.06 or 3.07 should work.
Oh, and P.S.: I got it to work on MySQL 3.2! SQL statements like this:
wfQuery("DELETE linkscc FROM linkscc,brokenlinks WHERE lcc_title=bl_from AND bl_to='{$ptitle}'", DB_WRITE);
are new in MySQL 4. I solved it by replacing it with something like this:
Disable $wgEnablePersistentLC to skip these. If you're using MySQL 3.2 performance will suck on a large site anyway, and it won't make that big a difference to a small site.
There was also one query where it was using "links" instead of "brokenlinks".
Could you point out where?
-- brion vibber (brion @ pobox.com)
Brion Vibber wrote:
On Jan 29, 2004, at 07:36, Timwi wrote:
I'm trying to compile texvc so I can use <math>:
kern:~/mediawiki-1.1.0/math$ make ocamlopt -c texvc.ml File "texvc.ml", line 8, characters 14-27: Unbound value Digest.to_hex make: *** [texvc.cmx] Error 2
What version of ocaml is installed? The one in debian-stable *doesn't work*.
Oh drats!
Is *anything* useful in debian-stable at all? Not MySQL 4, not OCamL. :(
Is it possible to install/use OCamL without being root?
Disable $wgEnablePersistentLC to skip these.
I noticed that if-statement around everywhere ... Since I just accidentally destroyed my modified version of Article.php, I've decided to do that instead then.
There was also one query where it was using "links" instead of "brokenlinks".
Could you point out where?
Article.php, line 902:
if ( $wgEnablePersistentLC ) { // Purge related entries in links cache on delete, wfQuery("DELETE linkscc FROM linkscc,links ". "WHERE lcc_title=links.l_from AND l_to={$id}", DB_WRITE); wfQuery("DELETE FROM linkscc WHERE lcc_title='{$t}'", DB_WRITE); }
Thanks again, Timwi
On Jan 30, 2004, at 15:38, Timwi wrote:
Is *anything* useful in debian-stable at all? Not MySQL 4, not OCamL. :(
Nope, Debian-stable sucks. :)
Is it possible to install/use OCamL without being root?
Hmm, should work. Grab the source distribution: http://caml.inria.fr/ocaml/distrib.html
You should be able to install it under your home directory by configuring the compilation like this: ./configure --prefix ~
Note that "--prefix=~" won't work, you need a space instead of an =. It's not GNU autoconf but some kind of custom script that doesn't work the same way.
There was also one query where it was using "links" instead of "brokenlinks".
Could you point out where?
Article.php, line 902:
if ( $wgEnablePersistentLC ) { // Purge related entries in links cache on delete, wfQuery("DELETE linkscc FROM linkscc,links ". "WHERE lcc_title=links.l_from AND l_to={$id}", DB_WRITE); wfQuery("DELETE FROM linkscc WHERE lcc_title='{$t}'", DB_WRITE);
No, that's correct. The links haven't at that point been switched from links to brokenlinks.
-- brion vibber (brion @ pobox.com)
Brion Vibber wrote:
On Jan 30, 2004, at 15:38, Timwi wrote:
Is *anything* useful in debian-stable at all? Not MySQL 4, not OCamL. :(
Nope, Debian-stable sucks. :)
I noticed ;-)
Is it possible to install/use OCamL without being root?
Hmm, should work. [...etc...]
Thank you very much for your help! ... This worked perfectly, and <math> works on my Wiki now. Yay! :-)
Thanksthanks, yay, Timwi
"T" == Timwi timwi@gmx.net writes:
T> Is *anything* useful in debian-stable at all? Not MySQL 4, not T> OCamL. :(
Somebody should probably check out this site:
~ESP
On Fri, 30 Jan 2004 23:38:57 +0000, Timwi wrote:
Oh drats!
Is *anything* useful in debian-stable at all? Not MySQL 4, not OCamL. :(
Is it possible to install/use OCamL without being root?
If you don't need the really-really-really stable woody i'd recommend to change you /etc/apt/sources.list to point to a testing mirror. Stable is more than one year old now, testing has matured a lot in the meantime. Afaik the only reason why testing isn't released as the new stable yet is the installer not being ready on all (!) architectures supported.
On the other hand you could try woody backports (http://www.backports.org/ for example).
Gabriel Wicke wrote:
On Fri, 30 Jan 2004 23:38:57 +0000, Timwi wrote:
Oh drats!
Is *anything* useful in debian-stable at all? Not MySQL 4, not OCamL. :(
Is it possible to install/use OCamL without being root?
If you don't need the really-really-really stable woody i'd recommend to change you /etc/apt/sources.list to point to a testing mirror. [...]
I'm trying (well, I've succeeded now) to install MediaWiki on a server where I am not root and I "only" have a home account. The admins of that server have the policy that they only install things from debian-stable.
But thanks for your help, Timwi
wikitech-l@lists.wikimedia.org