help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-glpk] Where to add the prefix argument...


From: Andrew Makhorin
Subject: Re: [Help-glpk] Where to add the prefix argument...
Date: Tue, 6 Mar 2001 17:44:04 +0300

After unpacking the distribution file you should enter into the
subdirectory 'glpk-2.1' and type 'configure' in order to configure the
package. This command reads 'Makefile.in' and produces 'Makefile'.
(The 'configure' allows to change destination subdirectories, but I've
never tried this feature; you could look at the file 'INSTALL' in the
distribution.)

In order to make the package you should type the command 'make'. It
compiles the package and produces the library 'libglpk.a'. If you use
'gcc' in this case, you should explicitly specify the subdirectiory
'glpk-2.1/inc' (which contains all GLPK headers) and the library
'libglpk.a'.

In order to check the package you could type 'make check'. It compiles
a sample program 'sample.c' and runs it. (It also compiles the solvers
'glpsol' and 'glpipm' in the subdirectory 'glpk-2.1/ex'.)

In order to install the package you should type 'make install' (in this
case you should be the root user). It is similar to 'make', however it
copies GLPK headers and 'libglpk.a' to the standard places.

In order to uninstall the package you should type 'make uninstall'. It
removes GLPK headers and 'libglpk.a' from the standard places.

In order to make the documentation you could type 'make ps', 'make pdf',
or 'make doc' depending on what you'd like to get.

Regards,

Andrew Makhorin,
the author and maintainer of GLPK

-----Original Message-----
From: Varun Narula <address@hidden>
To: address@hidden <address@hidden>
Subject: [Help-glpk] Where to add the prefix argument...


>Hi,
>
>The INSTALL is a little confusing. When does one use the
>--prefix=path/to option - with
>./configure or with 'make' and 'make install' or both ?
>
>can these installations be done as a non-root user ?
>
>i tried to run the sample.c file in the user guide , however it did not
>compile when i gave
>the gcc command. it was unable to find all the 'glp_'  functions.
>the include path was #include "glpk.h" as mentioned in the users guide.
>
>regards,
>varun narula
>
>
>_______________________________________________
>Help-glpk mailing list
>address@hidden
>http://mail.gnu.org/mailman/listinfo/help-glpk
>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]