On Thu, Jul 16, 2009 at 5:51 PM, Dr. David
Kirkby<david.kir...@onetel.net> wrote:
>
> Nathann Cohen wrote:
>> Hello !!
>>
>> I am trying to build a spkg for GLPK, and something happens that I
>> don't understand. There is no error at all when I run manually "./
>> configure && make && make install" in the console, and that is all the
>> file spkg-install does, but when I try to install GLPK with SAGE using
>> the spkg, I see a lot of "no such file or directory" that I do not
>> know how to fix.... If you have a few minutes, could you take a look
>> at :
>> http://www-sop.inria.fr/members/Nathann.Cohen/glpk.spkg
>>
>> Thanks you ! ;-)
>>
>> Nathann
>
> I had a quick look. I don't know the format a spkg is supposed to be in,
> but every one I have ever looked at has the code in a directory 'src'
> below the root of the spkg. Your's is not.
>
> Also, I believe the spkg filename is supposed to be the same as the
> code, so in this case you should call your package glpk-4.38.spkg and
> not simply glpk.spkg
>
>
> I assume there is some documentation about building .spkg files on the
> Sage web site. I've personally not looked at it, as I've never created
> one (I have enough problems building what is already there on Solaris!)

Here's a page from the Developers' Guide:

http://www.sagemath.org/doc/developer/producing_spkgs.html

An spkg is just a compressed file, where the compression uses tar and
then bzip2. Say you have a directory called glpk-4.38 that contains
the source of glpk in glpk-4.38/src and the whole directory glpk-4.38
follows the guidelines at

http://www.sagemath.org/doc/developer/producing_spkgs.html

You can then do this:

tar -jcf glpk-4.38.spkg glpk-4.38

which should give you the package glpk-4.38.spkg. Hope that helps.

-- 
Regards
Minh Van Nguyen

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to