Discussion:
Building the latest snapshot
(too old to reply)
Dave Yeo
2016-12-18 07:29:02 UTC
Permalink
Raw Message
Trying to build the latest snapshot on OS/2. After trials and errors in
my environment, I've got the build mostly working. It's dying in make
the documentation with,
...
%make prepare_wgml_opts
g:\ow\docs\gml\os2\wgml c_readme ( file wgmlopts.tmp
WATCOM Script/GML V4.0 Copyright by WATCOM International Corp. 1985,1993.
ps2pdf12 -r600 c_readme.ps c_readme.pdf
SYS1041: The name ps2pdf12 is not recognized as an
internal or external command, operable program or batch file.
Error(E42): Last command making (c_readme.pdf) returned a bad status
Error(E02): Make execution terminated
Error(E42): Last command making (c_readme) returned a bad status
Error(E02): Make execution terminated
<pmake -d build -h> => non-zero return: 512
Build failed

Anyone know what or where ps2pdf12 is? Seems to be referenced in
docs\mif\onebook.mif
Dave
Frank Beythien
2016-12-18 09:03:22 UTC
Permalink
Raw Message
Post by Dave Yeo
Trying to build the latest snapshot on OS/2. After trials and errors in
my environment, I've got the build mostly working. It's dying in make
the documentation with,
....
%make prepare_wgml_opts
g:\ow\docs\gml\os2\wgml c_readme ( file wgmlopts.tmp
WATCOM Script/GML V4.0 Copyright by WATCOM International Corp. 1985,1993.
ps2pdf12 -r600 c_readme.ps c_readme.pdf
SYS1041: The name ps2pdf12 is not recognized as an
internal or external command, operable program or batch file.
Anyone know what or where ps2pdf12 is? Seems to be referenced in
docs\mif\onebook.mif
Dave
ps2pdf12.cmd is part of ghostscript. I see I omitted the ghostscript
part in ow\bld\build\server\install.txt.
I use gs8.7. On hobbes I see gs814os2.zip.
My latest build is here:
https://efbe.musca.uberspace.de/

CU/2
Frank
Dave Yeo
2016-12-18 17:35:52 UTC
Permalink
Raw Message
Post by Frank Beythien
Post by Dave Yeo
SYS1041: The name ps2pdf12 is not recognized as an
Post by Dave Yeo
internal or external command, operable program or batch file.
Anyone know what or where ps2pdf12 is? Seems to be referenced in
docs\mif\onebook.mif
Dave
ps2pdf12.cmd is part of ghostscript. I see I omitted the ghostscript
part in ow\bld\build\server\install.txt.
I use gs8.7. On hobbes I see gs814os2.zip.
https://efbe.musca.uberspace.de/
Not part of gs8.00, I'll update.
Thanks
Dave
Dave Yeo
2016-12-19 07:16:31 UTC
Permalink
Raw Message
Post by Dave Yeo
Post by Frank Beythien
Post by Dave Yeo
SYS1041: The name ps2pdf12 is not recognized as an
Post by Dave Yeo
internal or external command, operable program or batch file.
Anyone know what or where ps2pdf12 is? Seems to be referenced in
docs\mif\onebook.mif
Dave
ps2pdf12.cmd is part of ghostscript. I see I omitted the ghostscript
part in ow\bld\build\server\install.txt.
I use gs8.7. On hobbes I see gs814os2.zip.
https://efbe.musca.uberspace.de/
Not part of gs8.00, I'll update.
Thanks
Dave
Actually it was in gs\lib. Unluckily I couldn't get the build to find
it. I ended up installing the RPM/YUM version which worked fine.
I notice there is no installer built. Is there another command to build
it? I guess I could just copy the files in rel2 over my old install but
would prefer not to.
Dave
Frank Beythien
2016-12-19 12:23:26 UTC
Permalink
Raw Message
Post by Dave Yeo
Post by Dave Yeo
Post by Frank Beythien
ps2pdf12.cmd is part of ghostscript. I see I omitted the ghostscript
part in ow\bld\build\server\install.txt.
I use gs8.7. On hobbes I see gs814os2.zip.
https://efbe.musca.uberspace.de/
Not part of gs8.00, I'll update.
Thanks
Dave
Actually it was in gs\lib. Unluckily I couldn't get the build to find
it. I ended up installing the RPM/YUM version which worked fine.
Yes, I think I copied it to the bin directory. My installation was
before RPM/YUM was available...
Post by Dave Yeo
I notice there is no installer built. Is there another command to build
it? I guess I could just copy the files in rel2 over my old install but
would prefer not to.
Dave
For the installer build you call with ow\distrib as current directory

builder missing
builder rel2

The builder missing is to let the builder rel2 succeed even if not all
expected files (for the other platforms) exist.

If you plan to build more than once, you can look at ow\bld\build\server
for instructions and sample cmdfiles.
Otherwise just take my build from last week at efbe.musca.uberspace.de
The cmdfiles for building, docs and installer are there, too.

CU/2
Frank
Dave Yeo
2016-12-21 07:02:54 UTC
Permalink
Raw Message
Post by Frank Beythien
Post by Dave Yeo
Post by Dave Yeo
Post by Frank Beythien
ps2pdf12.cmd is part of ghostscript. I see I omitted the ghostscript
part in ow\bld\build\server\install.txt.
I use gs8.7. On hobbes I see gs814os2.zip.
https://efbe.musca.uberspace.de/
Not part of gs8.00, I'll update.
Thanks
Dave
Actually it was in gs\lib. Unluckily I couldn't get the build to find
it. I ended up installing the RPM/YUM version which worked fine.
Yes, I think I copied it to the bin directory. My installation was
before RPM/YUM was available...
Post by Dave Yeo
I notice there is no installer built. Is there another command to build
it? I guess I could just copy the files in rel2 over my old install but
would prefer not to.
Dave
For the installer build you call with ow\distrib as current directory
builder missing
builder rel2
The builder missing is to let the builder rel2 succeed even if not all
expected files (for the other platforms) exist.
If you plan to build more than once, you can look at ow\bld\build\server
for instructions and sample cmdfiles.
Otherwise just take my build from last week at efbe.musca.uberspace.de
The cmdfiles for building, docs and installer are there, too.
I never could get the installer built, always something missing so ended
up downloading your build which seems to work fine.
Thanks
Dave

Paul S. Person
2016-12-19 17:47:45 UTC
Permalink
Raw Message
Post by Dave Yeo
Actually it was in gs\lib. Unluckily I couldn't get the build to find
it. I ended up installing the RPM/YUM version which worked fine.
I notice there is no installer built. Is there another command to build
it? I guess I could just copy the files in rel2 over my old install but
would prefer not to.
With my normal luck, you are doing something that this does not apply
to, but setvars.sh (Linux, right?) has a line

export GHOSTSCRIPTPATH=/usr/bin

which is supposed to be set to "the PATH required by GhostScript for
PDF creation".
--
"Nature must be explained in
her own terms through
the experience of our senses."
Frank Beythien
2016-12-19 18:29:03 UTC
Permalink
Raw Message
Post by Paul S. Person
Post by Dave Yeo
Actually it was in gs\lib. Unluckily I couldn't get the build to find
it. I ended up installing the RPM/YUM version which worked fine.
I notice there is no installer built. Is there another command to build
it? I guess I could just copy the files in rel2 over my old install but
would prefer not to.
With my normal luck, you are doing something that this does not apply
to, but setvars.sh (Linux, right?) has a line
export GHOSTSCRIPTPATH=/usr/bin
which is supposed to be set to "the PATH required by GhostScript for
PDF creation".
Hello Paul, Dave is on OS/2 and GS8.7 (which I still use) and later
builds for OS/2 AFAIK have ps2pdf12.cmd in gs\lib, not in bin. So
setting the path is not enough. I copied ps2pdf12 to gs\bin to make the
docs build work in 2012 IIRC.

CU/2
Frank
Dave Yeo
2016-12-19 21:04:27 UTC
Permalink
Raw Message
Post by Frank Beythien
Post by Paul S. Person
Post by Dave Yeo
Actually it was in gs\lib. Unluckily I couldn't get the build to find
it. I ended up installing the RPM/YUM version which worked fine.
I notice there is no installer built. Is there another command to build
it? I guess I could just copy the files in rel2 over my old install but
would prefer not to.
With my normal luck, you are doing something that this does not apply
to, but setvars.sh (Linux, right?) has a line
export GHOSTSCRIPTPATH=/usr/bin
which is supposed to be set to "the PATH required by GhostScript for
PDF creation".
Hello Paul, Dave is on OS/2 and GS8.7 (which I still use) and later
builds for OS/2 AFAIK have ps2pdf12.cmd in gs\lib, not in bin. So
setting the path is not enough. I copied ps2pdf12 to gs\bin to make the
docs build work in 2012 IIRC.
Possibly SET GHOSTSCRIPTPATH=f:\utils\gs\gs8.00 might have worked. I did
add the lib directory to the PATH and it got a little further but
couldn't find a file that ps2pdf12 included. Really gs should come with
an install file describing various environmental variables.
Dave
Frank Beythien
2016-12-19 21:40:34 UTC
Permalink
Raw Message
Post by Dave Yeo
Post by Frank Beythien
Post by Paul S. Person
Post by Dave Yeo
Actually it was in gs\lib. Unluckily I couldn't get the build to find
it. I ended up installing the RPM/YUM version which worked fine.
I notice there is no installer built. Is there another command to build
it? I guess I could just copy the files in rel2 over my old install but
would prefer not to.
With my normal luck, you are doing something that this does not apply
to, but setvars.sh (Linux, right?) has a line
export GHOSTSCRIPTPATH=/usr/bin
which is supposed to be set to "the PATH required by GhostScript for
PDF creation".
Hello Paul, Dave is on OS/2 and GS8.7 (which I still use) and later
builds for OS/2 AFAIK have ps2pdf12.cmd in gs\lib, not in bin. So
setting the path is not enough. I copied ps2pdf12 to gs\bin to make the
docs build work in 2012 IIRC.
Possibly SET GHOSTSCRIPTPATH=f:\utils\gs\gs8.00 might have worked. I did
add the lib directory to the PATH and it got a little further but
couldn't find a file that ps2pdf12 included. Really gs should come with
an install file describing various environmental variables.
Dave
Yes, gs is tricky and it becomes even trickier if GSview enters the mix.

In my notes I see that I copied ps2pdf12.cmd and ps2pdf.cmd (wich is
called by ps2pdf12.cmd) from lib to bin directory.
In \docs\mif\onebook.mif the path is prefixed by ghostscriptpath for the
ps2pdf call.
I use this ghostscriptpath:
set GHOSTSCRIPTPATH=e:\gs\gs8.71\bin;e:\gs\gs8.71\lib

CU/2
Frank
Paul S. Person
2016-12-20 18:25:31 UTC
Permalink
Raw Message
Post by Dave Yeo
Possibly SET GHOSTSCRIPTPATH=f:\utils\gs\gs8.00 might have worked. I did
add the lib directory to the PATH and it got a little further but
couldn't find a file that ps2pdf12 included. Really gs should come with
an install file describing various environmental variables.
OK, OS/2 and SET!

I am using Windows, which also uses SET, and

set
GHOSTSCRIPTPATH=C:\Progra~1\gs\gs9.15\bin;C:\Progra~1\gs\gs9.15\lib

works.

So, apparently, /both/ the bin and lib subdirectories need to be on
the path.

I suspect that GHOSTSCRIPTPATH is OW-specific, so documenting it more
clearly is our responsibility.

Searching the depot/openwatcom, at least, finds no documentation on
this issue -- or, at least, none mentioning "ps2pdf". Searching the
Wiki is similarly fruitless.

But hopefully you now have enough info to get it to work for you.
--
"Nature must be explained in
her own terms through
the experience of our senses."
Frank Beythien
2016-12-20 20:25:23 UTC
Permalink
Raw Message
Post by Paul S. Person
Post by Dave Yeo
Possibly SET GHOSTSCRIPTPATH=f:\utils\gs\gs8.00 might have worked. I did
add the lib directory to the PATH and it got a little further but
couldn't find a file that ps2pdf12 included. Really gs should come with
an install file describing various environmental variables.
OK, OS/2 and SET!
I am using Windows, which also uses SET, and
set
GHOSTSCRIPTPATH=C:\Progra~1\gs\gs9.15\bin;C:\Progra~1\gs\gs9.15\lib
works.
So, apparently, /both/ the bin and lib subdirectories need to be on
the path.
I suspect that GHOSTSCRIPTPATH is OW-specific, so documenting it more
clearly is our responsibility.
Jiri changed GHOSTSCRIPT to GHOSTSCRIPTPATH in change 37234
I'll add the GS requirement to bld\build\server\install.txt
after testing gs9.15 on OS/2
Post by Paul S. Person
Searching the depot/openwatcom, at least, finds no documentation on
this issue -- or, at least, none mentioning "ps2pdf". Searching the
Wiki is similarly fruitless.
But hopefully you now have enough info to get it to work for you.
Loading...