augmen / rpostgresql

Automatically exported from code.google.com/p/rpostgresql
0 stars 0 forks source link

Trunk build faild on 64 bit Windows platfrom. #36

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have managed to build 0.1.7 of RPostgreSQL for WindowsX64, but the faild to 
build the latest trunk of
it, I have attached the building guide for the old version, and the error 
message when building trunk
is :

$ R CMD build --binary RPostgreSQL/
--binary
* checking for file 'RPostgreSQL/DESCRIPTION' ... OK
* preparing 'RPostgreSQL':
* checking DESCRIPTION meta-information ... ERROR

'R''R'DESCRIPTION.

dell@dell-PC /d/Amber/DevProjects/R/packagesrc/RPostgreSQL/trunk-export
$

Original issue reported on code.google.com by guxiaobo...@gmail.com on 20 Nov 2011 at 10:09

Attachments:

GoogleCodeExporter commented 9 years ago
Exact version number of RPostgreSQL say r205, R-version, Windows version, 
compiler and other toolset versions are lacking in your report.

The latest DO compiles on windows 64 bit environment (Windows 7 SP1 or
Windows 2008) using standard tools sets. See the check status in CRAN
for 0.2-1.

Original comment by tomoa...@kenroku.kanazawa-u.ac.jp on 21 Nov 2011 at 1:19

GoogleCodeExporter commented 9 years ago
RPostgreSQL r205
Windows 7 X64 Home basic SP1
R 2.13.2
Rtools212.exe

Original comment by guxiaobo...@gmail.com on 21 Nov 2011 at 4:37

GoogleCodeExporter commented 9 years ago
I don't think we have resource to support old R and Rtools versions.  If you 
have a patch that works in both the latest and older versions we can consider 
to include it.

Why don't you use Rtools214 or the binary package?

Original comment by tomoa...@kenroku.kanazawa-u.ac.jp on 21 Nov 2011 at 5:59

GoogleCodeExporter commented 9 years ago
I don't think this is a RTools related problem. I have tried the R 2.14.0 x64, 
the same problem occurs, take a look at the error message, it seems there's 
problem with the meta-information in the description file. Is there some file 
encoding requirements for R package files, my computer is of local zh_cn.

Original comment by guxiaobo...@gmail.com on 21 Nov 2011 at 12:50

GoogleCodeExporter commented 9 years ago
There is a clue, the encodeing of the description is UTF-8, if I change it to 
ASCII, then toolset214 can build the package. There is another strange thing, 
the third line of description file is :
Date: $Date: 2011-11-15 09:05:36 +0800 (周二, 15 十一月 2011) $

That is there is Chinese character in the file, is the content generated by 
some magic which I don't know?

Original comment by guxiaobo...@gmail.com on 21 Nov 2011 at 1:25

GoogleCodeExporter commented 9 years ago
There is another strange thing:(

In old R

R CMD build --binary RPostgreSQL will make RPostgreSQL_version.zip file which 
can be installed manully later.

But now the command only packages the sources into a RPostgreSQL_version.tar.gz 
file, I must use
R CMD INSTALL RPostgreSQL_version.tar.gz to install it, how can I build the 
destributable binary file?

Original comment by guxiaobo...@gmail.com on 21 Nov 2011 at 1:33

GoogleCodeExporter commented 9 years ago
You can see the source at
http://code.google.com/p/rpostgresql/source/browse/trunk/RPostgreSQL/DESCRIPTION
and the third line in the repository is just
Date: $Date$
this is converted to other string by your software, maybe the svn client?
So just use C LOCALE to get normal conversion.  Anyway, this is not a 
problem of RPostgreSQL.  You should learn your tools.

Read the MANUAL: http://cran.r-project.org/doc/manuals/R-exts.html
R CMD build can also build pre-compiled version of packages for binary 
distributions, but it is now deprecated in favour of R CMD INSTALL --build. 

r205 is the one that become the release 0.2-1.  If you find something in the 
SVN repository is strange, you can get the package from CRAN rather than from 
SVN.
No meaningful change was made after that yet.

Original comment by tomoa...@kenroku.kanazawa-u.ac.jp on 21 Nov 2011 at 2:03

GoogleCodeExporter commented 9 years ago
You are having generic questions as to how one builds binary R packages from R 
package sources---this has nothing to do with RPostgreSQL so you should not ask 
it here. 

Try r-help, or the stackoverflow.com web site for those questions.  Please do 
not abuse this help channel.

As I recall, something changed within the last year. I *think* you now do 'R 
CMD INSTALL --build somePackage.tar.gz'. 

Original comment by dirk.eddelbuettel on 21 Nov 2011 at 2:07

GoogleCodeExporter commented 9 years ago
Thanks, I see you have put the Windows binary into CRAN now, that's great.

Original comment by guxiaobo...@gmail.com on 21 Nov 2011 at 2:20

GoogleCodeExporter commented 9 years ago

Original comment by tomoa...@kenroku.kanazawa-u.ac.jp on 22 Nov 2011 at 10:33