yueshengu / rpostgresql

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

check_with_vars.sh fails on MAC OS X #25

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run check_with_vars.sh

What is the expected output? What do you see instead?

Expected that all test run on MAC OS X.  They do not.

All test fail like the following:
==== Running RPostgreSQL/tests/connectWithNull.R
Loading required package: RPostgreSQL
Loading required package: DBI
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared library '/Library/Frameworks/R.framework/Resources/library/RPostgreSQL/libs/x86_64/RPostgreSQL.so':
  dlopen(/Library/Frameworks/R.framework/Resources/library/RPostgreSQL/libs/x86_64/RPostgreSQL.so, 6): no suitable image found.  Did find:
    /Library/Frameworks/R.framework/Resources/library/RPostgreSQL/libs/x86_64/RPostgreSQL.so: mach-o, but wrong architecture
Error: require(RPostgreSQL) is not TRUE
Execution halted

To make the tests run change the line from
        R --slave < $f

to
        R --arch=i386 --slave < $f

Investigating the right way to build this into the script.

Original issue reported on code.google.com by ne...@neiltiffin.com on 14 Oct 2010 at 2:40

GoogleCodeExporter commented 9 years ago
Fixed, problem in my build script.  Was not cleaning before building and had 
some garbage from a bad build.

Original comment by ne...@neiltiffin.com on 14 Oct 2010 at 8:02