How to specify package dependency for linux platform install?

Comments

1 comment

  • Avatar
    juanjo

    To check if make is installed, you could simply use the <programTest> rule:

    <showInfo text="make is installed!" >
      <ruleList>
        <programTest>
           <condition>is_in_path</condition>
           <name>make</make>
        </programTest>
      </ruleList>
    </showInfo>
    

    Checking for the ia32-libs may be harder if you try to directly obtain it from the system (executing dpkg -l, rpm -qa,... depending on the system) but you could create a simple 32bit binary and try to execute it at runtime, if it crash because it cannot find the 32bit libraries then the ia32-libs are not installed.

Please sign in to leave a comment.