[Pkg-scicomp-devel] Problem glpk using mysql, error "string literal too long".

Marcello Henrique faraohh at gmail.com
Fri Oct 2 17:32:21 UTC 2009


Hello,

I have problem with glpk debian package in Lenny in discusses with
help-glpk list, I receive sugestions to change constant in
src/glpmpl.h file to MAX_LENGTH 1000 according as email following
down.

Is possible include into the next package?
Attachment patch, in version 4.39.

Thanks by attention.

---------- Forwarded message ----------
From: Yaron Kretchmer <yaronkretchmer at gmail.com>
Date: Thu, Oct 1, 2009 at 15:24
Subject: Re: [Help-glpk] Problem glpk using mysql, error "string
literal too long".
To: Marcello Henrique <faraohh at gmail.com>


Yes, you should download source code and recompile.

Good luck!

yaron


On Thu, Oct 1, 2009 at 11:22 AM, Marcello Henrique <faraohh at gmail.com> wrote:
> I use compiled package in debian lenny  repository is necessary
> download source code, change then and compile again?
> You might say what should I change?
>
> Thank by advices!
>
> On Thu, Oct 1, 2009 at 15:13, Yaron Kretchmer <yaronkretchmer at gmail.com> wrote:
>> in the glpk source code (one of the .h files- I forget which one),
>> there is a constant which defines that max. string length. Change it
>> to something big (1000), and you should be good to go.
>>
>> Cheers
>> Yaron
>>
>>
>> On Thu, Oct 1, 2009 at 10:23 AM, Marcello Henrique <faraohh at gmail.com> wrote:
>>> Hello all,
>>>
>>> I use glpk over Debian Lenny "GLPSOL: GLPK LP/MIP Solver 4.38", I have
>>> error message "nurse.mod:35: string literal too long" my line 35 this
>>> file nurse.mod is:
>>>
>>> table days_shifts_cost_work IN "MySQL" ...
>>> 'SELECT day,shift,days_shifts.cost,days_shifts.work FROM days_shifts
>>> INNER JOIN days ON days_shifts.day_id=days.id INNER JOIN shifts ON
>>> days_shifts.shift_id=shifts.id' : [ shift,day ], Cal_cost~cost,
>>> Cal_work~work;
>>>
>>>
>>> Anybody help me?
>>>
>>> --
>>> Marcello Henrique
>>> Associação Software Livre de Goiás (www.aslgo.org.br)
>>> Cercomp - UFG (www.cercomp.ufg.br)
>>> _______________________________________________
>>> Help-glpk mailing list
>>> Help-glpk at gnu.org
>>> http://lists.gnu.org/mailman/listinfo/help-glpk
>>>
> --
> Marcello Henrique
> Associação Software Livre de Goiás (www.aslgo.org.br)
> Cercomp - UFG (www.cercomp.ufg.br)
> _______________________________________________
> Help-glpk mailing list
> Help-glpk at gnu.org
> http://lists.gnu.org/mailman/listinfo/help-glpk


-- 
Marcello Henrique
Associação Software Livre de Goiás (www.aslgo.org.br)
Cercomp - UFG (www.cercomp.ufg.br)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-max-length.patch
Type: text/x-patch
Size: 459 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-scicomp-devel/attachments/20091002/1ce83765/attachment.bin>


More information about the Pkg-scicomp-devel mailing list