2009/5/29 Octavian Rasnita <[email protected]> > Hi, > > I made a Catalyst app (under Windows) and I put it run under Linux. > > Under both OSes I use the same version (latest) of: > > Catalyst::Runtime > Catalyst::Devel > Catalyst::Helper::Model::DBIC::Schema > DBIx::Class > > If I generate the DBIC result classes using DBIC::Schema under Windows and > I upload them under Linux, then I try to re-generate them under Linux, even > though they are created by the same helper and based on the same database, > it gives an error when running the Catalyst helper: > > DBIx::Class::Schema::Loader::make_schema_at(): Cannot not overwrite > '/oct/TB/script/../lib/TB/Schema.pm' without 'really_er > ase_my_files', it does not appear to have been generated by Loader at > /usr/lib/perl5/site_perl/5.8.8/Catalyst/Helper/Model/ > DBIC/Schema.pm line 173 > > Is this way of re-generating the result classes wrong? > Can I do something to be able to use the helper for re-generate the result > classes under different platforms? > > Thanks. > > -- > Octavian > > > _______________________________________________ > List: [email protected] > Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst > Searchable archive: > http://www.mail-archive.com/[email protected]/ > Dev site: http://dev.catalyst.perl.org/ >
At a quick guess it might be that the files generated on windows use \r\n line endings when trying to update those files on linux it expects just \n. You could try using dos2unix on the files and see if you still get the same error. Ivan -- email/jabber: [email protected] / / _ _ / \ / | | | | / \/ \_| | |
_______________________________________________ List: [email protected] Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[email protected]/ Dev site: http://dev.catalyst.perl.org/
