Closed theory closed 6 years ago
I think I'm getting this same issue with the ppm install method as well. My --etc-path
is a directory that doesn't exist.
@joevandyk Will likely have to ask the ActivePerl folks what needs to change there…
Is there a solution to this now? I just completed an install this morning and was walking through the tutorial and ran into this. I'm on windows, running on activeperl, against postgres.
@charlesj What's the output of sqitch --etc-path
? If you copy the etc
directory in the source repository to that spot it should start working properly.
BTW, I switched to Strawberry Perl for testing Sqitch on Windows last week. It takes a lot longer to install Sqitch (everything gets built from source), but then all the files are where they belong, including the template files.
@theory the output of that command was a directory that didn't exist. Instead of going further down that rabbit hole, I instead uninstalled ActivePerl and installed Strawberry Perl. It wasn't too bad to install Sqitch - everything worked out of the box, and I was able to continue down the tutorial. I ran into unrelated problems, but was able to successfully deploy out the schema change to the database, so I'm really happy. The lesson in this case seems to be: use Strawberry Perl on Windows.
Yeah, I'm finding Strawberry easier to deal with, as well, so I've added it to the home page.
The new formula, released yesterday for v0.9998, explicitly sets the path to the etc
directory on build, and the templates should all be installed there:
Build.PL --quiet --install_base #{prefix} --etcdir #{etc}/sqitch
> ls -l $(/usr/local/bin/sqitch --etc-path)/templates/deploy
total 128
-r--r--r-- 1 david admin 221 Aug 20 12:57 exasol.tmpl
-r--r--r-- 1 david admin 221 Aug 20 12:57 firebird.tmpl
-r--r--r-- 1 david admin 229 Aug 20 12:57 mysql.tmpl
-r--r--r-- 1 david admin 212 Aug 20 12:57 oracle.tmpl
-r--r--r-- 1 david admin 229 Aug 20 12:57 pg.tmpl
-r--r--r-- 1 david admin 239 Sep 6 16:36 snowflake.tmpl
-r--r--r-- 1 david admin 229 Aug 20 12:57 sqlite.tmpl
-r--r--r-- 1 david admin 212 Aug 20 12:57 vertica.tmpl
From @heikkil in theory/sqitch#92: