Npp/Wine/Linux: calling a compiler

NppExec
Alan Stone
2008-09-23
2013-05-21
  • Alan Stone

    Alan Stone - 2008-09-23

    Hi,

    Npp 5.0.3 under Wine 1.1.5 & Ubuntu 8.04

    I'm trying to launch the ConTeXt compiler through the console.

    Here's the output of what I tested in the console...

    cd /opt/context/tex/texmf-linux/binCD: /opt/context/tex/texmf-linux/bin

    Current directory: Z:\opt\context\tex\texmf-linux\bin
    ================ READY ================
    dir
    DIR: *
    (---snip---)
    context
    (---snip---)
    texexec
    (---snip---)
    ================ READY ================

    then

    context --versioncontext --version

    CreateProcess() failed

    What's missing to make this work ?

    Thanks on beforehand and all the best,
    Alan

     
    • Greg Williams

      Greg Williams - 2008-09-23

      The NppExec script engine appears to try to interpret a string without an extenstion (.exe, .bin) as a script engine command. Either append an extension, or you can just use the NPP_RUN <call to compiler> script command which doesn't have this limitation.

       
      • Alan Stone

        Alan Stone - 2008-09-24

        I apologize for the confusion.

        This should have been posted in reply to the previous answer. So here it is again.

        ---

        We're getting closer...

        npp_exec /opt/context/tex/texmf-linux/bin/context --versionNPP_EXEC: /opt/context/tex/texmf-linux/bin/context --version
        #!/bin/sh
        CreateProcess() failed
        mtxrun --script context "$@"

        CreateProcess() failed
        ================ READY ================
        npp_exec /opt/context/tex/texmf-linux/bin/texexec --versionNPP_EXEC: /opt/context/tex/texmf-linux/bin/texexec --version
        #!/bin/sh

        CreateProcess() failed
        texmfstart texexec.rb "$@"
        CreateProcess() failed
        ================ READY ================
        npp_exec /opt/context/tex/texmf-linux/bin/mtxrun --script context --versionNPP_EXEC: /opt/context/tex/texmf-linux/bin/mtxrun --script context --version

        #!/usr/bin/env texlua
        CreateProcess() failed
        if not modules then modules = { } end modules ['mtxrun'] = {
        CreateProcess() failed
        version = 1.001,
        CreateProcess() failed
        comment = "runner, lua replacement for texmfstart.rb",
        CreateProcess() failed
        author = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
        CreateProcess() failed
        copyright = "PRAGMA ADE / ConTeXt Development Team",
        CreateProcess() failed
        license = "see context related readme files"
        CreateProcess() failed
        }
        CreateProcess() failed
        -- one can make a stub:
        CreateProcess() failed
        --
        CreateProcess() failed
        -- #!/bin/sh
        CreateProcess() failed
        -- env LUATEXDIR=/....../texmf/scripts/context/lua luatex --luaonly mtxrun.lua "$@"
        CreateProcess() failed
        -- filename : mtxrun.lua
        CreateProcess() failed
        -- comment : companion to context.tex
        CreateProcess() failed
        etc...

        Any idea what's missing ?

         
    • Alan Stone

      Alan Stone - 2008-09-23

      context is a shell script

      NPP_RUN context --version
      NPP_RUN: context --version
      - there is no application associated with the given file name extension
      ================ READY ================
      context.sh --version
      context.sh --version
      CreateProcess() failed

       
    • Alan Stone

      Alan Stone - 2008-09-24

      We're getting closer...

      npp_exec /opt/context/tex/texmf-linux/bin/context --versionNPP_EXEC: /opt/context/tex/texmf-linux/bin/context --version
      #!/bin/sh
      CreateProcess() failed
      mtxrun --script context "$@"

      CreateProcess() failed
      ================ READY ================
      npp_exec /opt/context/tex/texmf-linux/bin/texexec --versionNPP_EXEC: /opt/context/tex/texmf-linux/bin/texexec --version
      #!/bin/sh

      CreateProcess() failed
      texmfstart texexec.rb "$@"
      CreateProcess() failed
      ================ READY ================
      npp_exec /opt/context/tex/texmf-linux/bin/mtxrun --script context --versionNPP_EXEC: /opt/context/tex/texmf-linux/bin/mtxrun --script context --version

      #!/usr/bin/env texlua
      CreateProcess() failed
      if not modules then modules = { } end modules ['mtxrun'] = {
      CreateProcess() failed
      version   = 1.001,
      CreateProcess() failed
      comment   = "runner, lua replacement for texmfstart.rb",
      CreateProcess() failed
      author    = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
      CreateProcess() failed
      copyright = "PRAGMA ADE / ConTeXt Development Team",
      CreateProcess() failed
      license   = "see context related readme files"
      CreateProcess() failed
      }
      CreateProcess() failed
      -- one can make a stub:
      CreateProcess() failed
      --
      CreateProcess() failed
      -- #!/bin/sh
      CreateProcess() failed
      -- env LUATEXDIR=/....../texmf/scripts/context/lua luatex --luaonly mtxrun.lua "$@"
      CreateProcess() failed
      -- filename : mtxrun.lua
      CreateProcess() failed
      -- comment  : companion to context.tex
      CreateProcess() failed
      etc...

      Any idea what's missing ?

       
    • DV

      DV - 2008-10-03

      I think if you can't type "help" in NppExec's Console window and read about the difference between NPP_RUN and NPP_EXEC, then I can't help you...

       
    • DV

      DV - 2008-10-03

      Just a hint: context.sh is a shell script, it is not a program, so NppExec  CAN NOT  run it by itself. As I understand, the shell script context.sh is interpretted by some shell, so this shell must be run with context.sh as a parameter in order to execute it.

       

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks