ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* First time user trying to get Context to work
@ 2009-07-13  7:32 Harrie Frericks
  2009-07-13  8:02 ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Harrie Frericks @ 2009-07-13  7:32 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 2449 bytes --]

This is my first post to the list. I'm a first time user and I'm very eager
to give Context a try. However, so far I've been unable to get Context to
work properly. Maybe someone can help. I'm using a standard Windows PC
running XP SP2. I'm using the minimals version. There are no other Tex
related packages on my system.
Problem 1 (solved):
Ruby error: no such file to load ubygems
Solution: this error is caused by the environment variable RUBYOPT. When it
is set, it is usually set to -rubygems. Unsetting this variable solves the
problem.
Suggestion: when running first-setup.bat this error is produced on the very
first line. However, since there is a lot of text scrolling down the screen
this error is easily overlooked. It may be a good idea to unset the RUBYOPT
variable in this .bat file. It may also be a good idea to unset (and
probably reset) this variable in the texexec.bat file before texlua is
called.

Problem 2 (not-solved)
I'm getting the infamous error: I can't find the format file `cont-en.fmt'!
 I searched this list and tried texexec --make --all  This doesn't solve the
problem. The problem is located in this part of the output:

TexExec | using tex engine pdftex
TexExec | using tex format path ./pdftex
TexExec | unable to make format due to lack of permissions
TexExec | using mp engine mpost
TexExec | using mps format path .
TexExec | generating mps format metafun

I then did some debugging on the tex.rb file and found the error is
generated in the following piece of code starting at line 646:

        if texformats && texengine then
            report("using tex engine #{texengine}")
            texformatpath = if getvariable('local') then '.' else
Kpse.formatpath(texengine,true) end
            # can be empty, to do
            report("using tex format path #{texformatpath}")
            Dir.chdir(texformatpath) rescue false
            if FileTest.writable?(texformatpath) then

The last if fails and generates the error on line 679. I then checked for
file permissions in the c:\context directory tree and found no problems
there. My guess: the ./pdftex format path either doesn't exist or can't be
found by tex.rb and this generates the error. The ruby scripts of Context
are too large to do a full debug. I simply do not have the time for that.

So, after several hours of hacking I hope someone can solve this problem, so
I can finally give Context a try.

Regards,

Harrie Frericks
The Netherlands

[-- Attachment #1.2: Type: text/html, Size: 2948 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: First time user trying to get Context to work
  2009-07-13  7:32 First time user trying to get Context to work Harrie Frericks
@ 2009-07-13  8:02 ` Hans Hagen
  2009-07-13  8:11   ` Harrie Frericks
  0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2009-07-13  8:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Harrie Frericks wrote:

> Suggestion: when running first-setup.bat this error is produced on the very
> first line. However, since there is a lot of text scrolling down the screen
> this error is easily overlooked. It may be a good idea to unset the RUBYOPT
> variable in this .bat file. It may also be a good idea to unset (and
> probably reset) this variable in the texexec.bat file before texlua is
> called.

ok, another option is to do this in mtx-context.lua as that one can also 
start texexec, like:


                     if texexec ~= "" then
                         os.setenv("RUBYOPT","")
                         local command = string.format("ruby %s 
%s",texexec,environment.reconstruct_commandline(environment.arguments_after))
                         os.exec(command)
                     end


so "context --pdftex ..." then should work

> Problem 2 (not-solved)
> I'm getting the infamous error: I can't find the format file `cont-en.fmt'!
>  I searched this list and tried texexec --make --all  This doesn't solve the
> problem. The problem is located in this part of the output:

did you run 'setuptex' in the tex path first?

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: First time user trying to get Context to work
  2009-07-13  8:02 ` Hans Hagen
@ 2009-07-13  8:11   ` Harrie Frericks
  2009-07-13  8:22     ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Harrie Frericks @ 2009-07-13  8:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 373 bytes --]

>
> Problem 2 (not-solved)
>> I'm getting the infamous error: I can't find the format file
>> `cont-en.fmt'!
>>  I searched this list and tried texexec --make --all  This doesn't solve
>> the
>> problem. The problem is located in this part of the output:
>>
>
> did you run 'setuptex' in the tex path first?
>
> Hans
>

Yes, I did. It makes no difference.

Thanks, Harrie.

[-- Attachment #1.2: Type: text/html, Size: 745 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: First time user trying to get Context to work
  2009-07-13  8:11   ` Harrie Frericks
@ 2009-07-13  8:22     ` Hans Hagen
  2009-07-13 10:00       ` Harrie Frericks
  2009-07-14  6:31       ` Harrie Frericks
  0 siblings, 2 replies; 6+ messages in thread
From: Hans Hagen @ 2009-07-13  8:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Harrie Frericks wrote:
>> Problem 2 (not-solved)
>>> I'm getting the infamous error: I can't find the format file
>>> `cont-en.fmt'!
>>>  I searched this list and tried texexec --make --all  This doesn't solve
>>> the
>>> problem. The problem is located in this part of the output:
>>>
>> did you run 'setuptex' in the tex path first?
>>
>> Hans
>>
> 
> Yes, I did. It makes no difference.


the ./pdftex suggests that your env vars are not set up; on unix make 
sure that you run

. setuptex

(with period)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: First time user trying to get Context to work
  2009-07-13  8:22     ` Hans Hagen
@ 2009-07-13 10:00       ` Harrie Frericks
  2009-07-14  6:31       ` Harrie Frericks
  1 sibling, 0 replies; 6+ messages in thread
From: Harrie Frericks @ 2009-07-13 10:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2728 bytes --]

I did some more debugging:
In the file kpse.rb I entered an exception object after line 274, like this:

                    unless done then
                                formatpaths.each do |fp|
                            fpp = fp.sub(/#{engine}\/*$/o,'')
                                begin
                            FileUtils.makedirs(fpp)
                                rescue => excobj
                                    puts "#{excobj.class}:
#{excobj.message}" # false # maybe we don't have an path yet
                                end
                            if FileTest.directory?(fpp) &&
FileTest.writable?(fpp) then
                                # use this path

This generates the following output when running texexec --make --all

TeXExex | using tex engine pdftex
Errno::ENOENT: No such file or directory -
c:/context/tex/texmf-mswin/web2c/pdftex:c:
TeXExex | using tex format path ./pdftex
TeXExex | unable to make format due to lack of permissions
TeXExex | using mp engine mpost
Errno::ENOENT: No such file or directory -
c:/context/tex/texmf-mswin/web2c/:c:
TeXExex | using mps format path

Does this help in solving this problem?

Thanks,

Harrie

On Mon, Jul 13, 2009 at 10:22 AM, Hans Hagen <pragma@wxs.nl> wrote:

> Harrie Frericks wrote:
>
>> Problem 2 (not-solved)
>>>
>>>> I'm getting the infamous error: I can't find the format file
>>>> `cont-en.fmt'!
>>>>  I searched this list and tried texexec --make --all  This doesn't solve
>>>> the
>>>> problem. The problem is located in this part of the output:
>>>>
>>>>  did you run 'setuptex' in the tex path first?
>>>
>>> Hans
>>>
>>>
>> Yes, I did. It makes no difference.
>>
>
>
> the ./pdftex suggests that your env vars are not set up; on unix make sure
> that you run
>
> . setuptex
>
> (with period)
>
>
> Hans
>
> -----------------------------------------------------------------
>                                          Hans Hagen | PRAGMA ADE
>              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
>                                             | www.pragma-pod.nl
> -----------------------------------------------------------------
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 5328 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: First time user trying to get Context to work
  2009-07-13  8:22     ` Hans Hagen
  2009-07-13 10:00       ` Harrie Frericks
@ 2009-07-14  6:31       ` Harrie Frericks
  1 sibling, 0 replies; 6+ messages in thread
From: Harrie Frericks @ 2009-07-14  6:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1955 bytes --]

The problem has been solved. It turned out Ruby is installed twice on my
computer. One is the regular download from www.ruby-lang.org, the other one
came with cygwin (which I wasn't aware of). The cygwin path string was
before the c:\ruby path string. When I moved the c:\ruby path before the
cygwin path Context worked correctly.
And this took me a full day of hacking. Sigh.

Thanks for all your help.

Harrie.

On Mon, Jul 13, 2009 at 10:22 AM, Hans Hagen <pragma@wxs.nl> wrote:

> Harrie Frericks wrote:
>
>> Problem 2 (not-solved)
>>>
>>>> I'm getting the infamous error: I can't find the format file
>>>> `cont-en.fmt'!
>>>>  I searched this list and tried texexec --make --all  This doesn't solve
>>>> the
>>>> problem. The problem is located in this part of the output:
>>>>
>>>>  did you run 'setuptex' in the tex path first?
>>>
>>> Hans
>>>
>>>
>> Yes, I did. It makes no difference.
>>
>
>
> the ./pdftex suggests that your env vars are not set up; on unix make sure
> that you run
>
> . setuptex
>
> (with period)
>
>
> Hans
>
> -----------------------------------------------------------------
>                                          Hans Hagen | PRAGMA ADE
>              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
>                                             | www.pragma-pod.nl
> -----------------------------------------------------------------
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 3327 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-07-14  6:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-13  7:32 First time user trying to get Context to work Harrie Frericks
2009-07-13  8:02 ` Hans Hagen
2009-07-13  8:11   ` Harrie Frericks
2009-07-13  8:22     ` Hans Hagen
2009-07-13 10:00       ` Harrie Frericks
2009-07-14  6:31       ` Harrie Frericks

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).