Menu

Installation of MaxFEM on Debian Jessie

2016-07-09
2016-07-12
  • Umair Ahsun

    Umair Ahsun - 2016-07-09

    Hi,

    I am trying to install MaxFEM (maxfem_0.3.4_all.deb) on debian jessie but installation fails due to dependency on missing package python-wxgtk2.8. Here is the output I get after running dpkg command:

    Preparing to unpack maxfem_0.3.4_all.deb ...
    Unpacking maxfem (0.3.4) ...
    dpkg: dependency problems prevent configuration of maxfem:
    maxfem depends on python-wxgtk2.8; however:
    Package python-wxgtk2.8 is not installed.

    dpkg: error processing package maxfem (--install):
    dependency problems - leaving unconfigured
    Processing triggers for desktop-file-utils (0.22-1) ...
    Processing triggers for mime-support (3.58) ...
    Errors were encountered while processing:
    maxfem

    In Debian-jessie python-wxgtk3.0 is installed and there is no link to package python-wxgtk2.8

    I would appreciate if can get some help in installing MaxFEM on debian-jessie.

    Thanks

     
    • Fran Pena

      Fran Pena - 2016-07-10

      Hi,

      we will solve this restriction in the next version of MaxFEM. Meanwhile,
      you can edit the file ./code/wx_version.py and change the number 2.8 in the
      line

      wxversion.ensureMinimal("2.8")

      by the number of the version you have.

      Best regards,
      Francisco Pena

       

      Last edit: Fran Pena 2018-04-03
      • Fran Pena

        Fran Pena - 2016-07-12

        Hi,

        in my first answer I did not realize that you will have to unpack the
        Debian package in order to have access to the sources. Maybe, the easiest
        way to modify the code is to:

        1. Download the source file maxfem_0.3.4_source.tar.gz from
          http://www.usc.es/en/proxectos/maxfem
        2. Change in ./code/wx_version.py the line:
          wxversion.select("2.8")
          by:
          wxversion.ensureMinimal("2.8")
        3. Execute make in ./sources/ in order to create new solvers ./solvers/.
          Check the file permissions of the new solvers to guarantee that can be
          executed.
        4. You can manually create a direct access to ./code/opennum.py to easily
          open the application.

        Just for your information, the Debian package maxfem_0.3.4_all.deb
        basically do the following steps:

        1. Create in /usr/share/ the folder maxfem with the application content (
          ./solvers/, ./code/, etc.).
        2. Create in /usr/share/doc/ the folder maxfem with a copy of changelog.gz
          and copyright.
        3. Create a direct access to maxfem in /usr/bin/:
          ln -fs /usr/share/maxfem/code/MaxFEM.py /usr/bin/maxfem
        4. Create in /usr/share/applications/ the file MaxFEM.desktop, with the
          content:
          [Desktop Entry]
          Name=MaxFEM
          Version=1.0
          Exec=maxfem
          Comment=Software for electromagnetic simulation
          Icon=/usr/share/maxfem/images/icon.MaxFEM.png
          Type=Application
          Terminal=true
          StartupNotify=true
          Encoding=UTF-8
          Categories=Science;
        5. Create executable files in solvers through the command make en
          /usr/share/maxfem/sources/.

        Best regards,
        Francisco Pena

         

        Last edit: Fran Pena 2018-04-03

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.