Discussion:
Ciao Prolog without Cygwin?
Jan Burse
2013-09-09 10:43:47 UTC
Permalink
Can I use ciao prolog without cygwin? I get
the following error:

Ciao 1.15-1781-g328b907: Wed Jun 19 00:06:05 PST 2013
?- use_package(clpfd).
{Using package /cygdrive/c/Program Files
(x86)/CiaoDE/ciao/contrib/clpfd/clpfd.p
l
{Including /cygdrive/c/Program Files
(x86)/CiaoDE/ciao/contrib/clpfd/clpfd_ops.p
l
}
WARNING: cannot create /cygdrive/c/Program Files
(x86)/CiaoDE/ciao/contrib/clpfd
/clpfd_tr.itf
WARNING: cannot create /cygdrive/c/Program Files
(x86)/CiaoDE/ciao/contrib/clpfd
/clpfd_tr.itf
WARNING: cannot create /cygdrive/c/Program Files
(x86)/CiaoDE/ciao/contrib/debug
pred/debugpred_tr.itf
WARNING: cannot create /cygdrive/c/Program Files
(x86)/CiaoDE/ciao/lib/attr/attr
_tr.itf
Jose F. Morales
2013-09-18 08:15:09 UTC
Permalink
Hi Jan,

It seems like a permission error. Installation did not generate precompiled
binaries for those library modules so the system is trying to compile them
(presumably) in a place where your user do not have write access. It should
be fixed in the next (minor) release of the development version. In any
case it is not a major problem: the system should still work normally even
if those files are not there.

As a workaround, you may use the modules or packages from a privileged
user. Once the precompiled versions are there it is not necessary to
regenerate them again.

Thank you
Post by Jan Burse
Can I use ciao prolog without cygwin? I get
Ciao 1.15-1781-g328b907: Wed Jun 19 00:06:05 PST 2013
?- use_package(clpfd).
{Using package /cygdrive/c/Program Files (x86)/CiaoDE/ciao/contrib/**
clpfd/clpfd.p
l
{Including /cygdrive/c/Program Files (x86)/CiaoDE/ciao/contrib/**
clpfd/clpfd_ops.p
l
}
WARNING: cannot create /cygdrive/c/Program Files (x86)/CiaoDE/ciao/contrib/
**clpfd
/clpfd_tr.itf
WARNING: cannot create /cygdrive/c/Program Files (x86)/CiaoDE/ciao/contrib/
**clpfd
/clpfd_tr.itf
WARNING: cannot create /cygdrive/c/Program Files (x86)/CiaoDE/ciao/contrib/
**debug
pred/debugpred_tr.itf
WARNING: cannot create /cygdrive/c/Program Files
(x86)/CiaoDE/ciao/lib/attr/**attr
_tr.itf
______________________________**_________________
Ciao-users mailing list
http://clip.dia.fi.upm.es/cgi-**bin/mailman/listinfo/ciao-**users
--
Jose
Jose F. Morales
2013-09-20 07:55:08 UTC
Permalink
Hi Jan,

It seems that some 'cd' in a shell script uses an unquoted string (i.e.,
'cd $foo' instead of 'cd "$foo"'). We are currently working on that kind of
errors (as well as removing many unnecessary shell scripts). Could you give
us the exact command that raised that error?

Thank you
Hi,
I am running Ciao (the .bat) in Administrator mode. The
permission errors are now gone.
sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `cd /cygdrive/c/Program Files (x86)/CiaoDE/ciao/library/*
*random
; gcc -c -I/home/ciaobot/ciaobot-data/**vm_winxp/source/master/CiaoDE/**
build/includ
e/Win32i86 -o /cygdrive/c/Program Files (x86)/CiaoDE/ciao/library/**
random/random_
Win32i86_glue.o /cygdrive/c/Program Files (x86)/CiaoDE/ciao/library/**
random/rando
m_Win32i86_glue.c'
{Dynamic link failed}
But somehow it seems to me that I can ignore it. Or
what is the advice here.
Bye
Post by Jose F. Morales
Hi Jan,
It seems like a permission error. Installation did not generate
precompiled binaries for those library modules so the system is trying
to compile them (presumably) in a place where your user do not have
write access. It should be fixed in the next (minor) release of the
development version. In any case it is not a major problem: the system
should still work normally even if those files are not there.
As a workaround, you may use the modules or packages from a privileged
user. Once the precompiled versions are there it is not necessary to
regenerate them again.
Thank you
Can I use ciao prolog without cygwin? I get
Ciao 1.15-1781-g328b907: Wed Jun 19 00:06:05 PST 2013
?- use_package(clpfd).
{Using package /cygdrive/c/Program Files
(x86)/CiaoDE/ciao/contrib/__**clpfd/clpfd.p
l
{Including /cygdrive/c/Program Files
(x86)/CiaoDE/ciao/contrib/__**clpfd/clpfd_ops.p
l
}
WARNING: cannot create /cygdrive/c/Program Files
(x86)/CiaoDE/ciao/contrib/__**clpfd
/clpfd_tr.itf
WARNING: cannot create /cygdrive/c/Program Files
(x86)/CiaoDE/ciao/contrib/__**clpfd
/clpfd_tr.itf
WARNING: cannot create /cygdrive/c/Program Files
(x86)/CiaoDE/ciao/contrib/__**debug
pred/debugpred_tr.itf
WARNING: cannot create /cygdrive/c/Program Files
(x86)/CiaoDE/ciao/lib/attr/__**attr
_tr.itf
______________________________**___________________
Ciao-users mailing list
http://clip.dia.fi.upm.es/cgi-**__bin/mailman/listinfo/ciao-__**users<http://clip.dia.fi.upm.es/cgi-__bin/mailman/listinfo/ciao-__users>
--
Jose
<http://clip.dia.fi.upm.es/**cgi-bin/mailman/listinfo/ciao-**users<http://clip.dia.fi.upm.es/cgi-bin/mailman/listinfo/ciao-users>
______________________________**_________________
Ciao-users mailing list
http://clip.dia.fi.upm.es/cgi-**bin/mailman/listinfo/ciao-**users<http://clip.dia.fi.upm.es/cgi-bin/mailman/listinfo/ciao-users>
______________________________**_________________
Ciao-users mailing list
http://clip.dia.fi.upm.es/cgi-**bin/mailman/listinfo/ciao-**users
--
Jose
Jan Burse
2013-09-19 10:08:48 UTC
Permalink
Hi,

I am running Ciao (the .bat) in Administrator mode. The
permission errors are now gone.

But I got a different error now:

sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `cd /cygdrive/c/Program Files
(x86)/CiaoDE/ciao/library/random
; gcc -c
-I/home/ciaobot/ciaobot-data/vm_winxp/source/master/CiaoDE/build/includ
e/Win32i86 -o /cygdrive/c/Program Files
(x86)/CiaoDE/ciao/library/random/random_
Win32i86_glue.o /cygdrive/c/Program Files
(x86)/CiaoDE/ciao/library/random/rando
m_Win32i86_glue.c'
{Dynamic link failed}

But somehow it seems to me that I can ignore it. Or
what is the advice here.

Bye
Post by Jose F. Morales
Hi Jan,
It seems like a permission error. Installation did not generate
precompiled binaries for those library modules so the system is trying
to compile them (presumably) in a place where your user do not have
write access. It should be fixed in the next (minor) release of the
development version. In any case it is not a major problem: the system
should still work normally even if those files are not there.
As a workaround, you may use the modules or packages from a privileged
user. Once the precompiled versions are there it is not necessary to
regenerate them again.
Thank you
Can I use ciao prolog without cygwin? I get
Ciao 1.15-1781-g328b907: Wed Jun 19 00:06:05 PST 2013
?- use_package(clpfd).
{Using package /cygdrive/c/Program Files
(x86)/CiaoDE/ciao/contrib/__clpfd/clpfd.p
l
{Including /cygdrive/c/Program Files
(x86)/CiaoDE/ciao/contrib/__clpfd/clpfd_ops.p
l
}
WARNING: cannot create /cygdrive/c/Program Files
(x86)/CiaoDE/ciao/contrib/__clpfd
/clpfd_tr.itf
WARNING: cannot create /cygdrive/c/Program Files
(x86)/CiaoDE/ciao/contrib/__clpfd
/clpfd_tr.itf
WARNING: cannot create /cygdrive/c/Program Files
(x86)/CiaoDE/ciao/contrib/__debug
pred/debugpred_tr.itf
WARNING: cannot create /cygdrive/c/Program Files
(x86)/CiaoDE/ciao/lib/attr/__attr
_tr.itf
_________________________________________________
Ciao-users mailing list
http://clip.dia.fi.upm.es/cgi-__bin/mailman/listinfo/ciao-__users
--
Jose
<http://clip.dia.fi.upm.es/cgi-bin/mailman/listinfo/ciao-users>
_______________________________________________
Ciao-users mailing list
http://clip.dia.fi.upm.es/cgi-bin/mailman/listinfo/ciao-users
Loading...