Hi Kish, Thanks for your help, the base image now builds successfully. Is there a simple way of checking that both GMP / CBC were linked properly and are working? For your reference, here’s the code so far: FROM debian:bullseye AS builder RUN apt update \ && apt install -y \ build-essential \ m4 \ gfortran \ tcl-dev \ tk-dev \ git \ subversion \ wget ENV GMP_VERSION 4.2.4 WORKDIR /gmp RUN wget https://ftp.gnu.org/gnu/gmp/gmp-${GMP_VERSION}.tar.gz \ && tar -xvf gmp-${GMP_VERSION}.tar.gz \ && cd gmp-${GMP_VERSION} \ && ./configure --prefix=/usr --enable-cxx --enable-mpbsd \ && make \ && make install WORKDIR /eclipse RUN git clone https://git.code.sf.net/p/eclipse-clp/git . RUN ./configure --with-osi WORKDIR /eclipse/Eplex RUN make -f Makefile.x86_64_linux install_cbc RUN ln -s /vol/Eclipse/thirdparty/coinclpcbc2.9 /vol/Eclipse/thirdparty/coinclpcbc WORKDIR /eclipse RUN ./configure --with-osi RUN make -f Makefile.x86_64_linux install RUN make -f Makefile.x86_64_linux install_documents > On 17 Jul 2021, at 12:03 am, Kish Shen <kish.shen_at_...6...> wrote: > > Hi Vasily, > > I don't know about Debian Dockerfile, so I don''t know if it requires > anythingextra. > > When configure is run, it will look for COIN-OR related files in the > third part directory set ECLIPSETHIRDPARTY environment variable. > > You probably don't have COIN-OR installed there, but after running > configure, you can build and install COIN-OR solvers from the Eplex > directory. Go into the Eplex directory, and run this > > make -f Makefile.<platform> install_cbc > (<platform> is your platform, e.g. x86_64_linux) > > and this should download, build, and install CBC/CLP into the third > party directory. > > You can now run configure again, and it should find CBC/CLP. > > CBC/CLP is far the best supported COIN-OR solver in eplex, but eplex > also support other solvers via the generic OSI interface, and there > are Makefile rules to build SYMPHONY as well. Look at the Makefile if > you are interested. > > Cheers, > > Kish > > > > > > > > > > On Fri, Jul 16, 2021 at 12:19 PM Vasily Kartashov <info_at_...430...> wrote: >> >> Hello, >> >> Do you have detailed step by step instructions for compiling eclipse + eplex under debian. I am working on a `Dockerfile`, but >> >> 1) it’s not clear which coinor packages are required >> 2) how to make eclipse aware of them >> >> Currently the Dockerfile looks like this >> >> FROM debian:bullseye AS builder >> >> RUN apt update && \ >> apt install -y \ >> build-essential \ >> libgmp-dev \ >> tcl-dev \ >> tk-dev \ >> git \ >> coinor-libcbc-dev \ >> coinor-libcgl-dev \ >> coinor-libclp-dev \ >> coinor-libdylp-dev \ >> coinor-libvol-dev >> >> WORKDIR /eclipse >> >> RUN git clone https://git.code.sf.net/p/eclipse-clp/git . >> >> RUN ./configure \ >> --with-osi \ >> --without-cplex \ >> --without-xpress \ >> --without-gurobi \ >> --without-gfd \ >> --without-java \ >> --without-flexlm \ >> --without-graphviz \ >> --without-mysql \ >> --without-cpviz >> RUN make -f Makefile.x86_64_linux install >> RUN make -f Makefile.x86_64_linux install_documents >> >> FROM debian:bullseye-slim >> >> COPY --from=builder /eclipse/bin/x86_64_linux/eclipse /usr/local/bin/eclipse >> COPY --from=builder /eclipse/lib /eclipse/lib >> COPY --from=builder /eclipse/lib_public /eclipse/lib_public >> >> ENTRYPOINT [ "eclipse” ] >> >> _______________________________________________ >> ECLiPSe-CLP-Users mailing list >> ECLiPSe-CLP-Users_at_lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/eclipse-clp-usersReceived on Tue Jul 20 2021 - 06:09:28 CEST
This archive was generated by hypermail 2.3.0 : Wed Sep 25 2024 - 15:13:21 CEST