Skip to content

Getting started with blotter (adding transactions) SOLVED

1 message · Bos, Roger

#
All,


It turns out the problem was I didn?t have ?c:\Rtools\gcc-4.6.3\bin? in my PATH.  I recall Rtools used to pop up a window to let you edit the path and I didn?t see that the last.  The PATH to Rtools\bin was there, but not the compiler.  Once I fixed that I was able to install blotter from source just fine.  Thanks to everyone for the suggestions and apologies for taking up your time.

This page was very helpful for me:
https://github.com/stan-dev/rstan/wiki/Install-Rtools-for-Windows

Thanks,

Roger



***************************************************************

This message and any attachments are for the named person's use only.

This message may contain confidential, proprietary or legally privileged

information. No right to confidential or privileged treatment

of this message is waived or lost by an error in transmission.

If you have received this message in error, please immediately

notify the sender by e-mail, delete the message, any attachments and all

copies from your system and destroy any hard copies.  You must

not, directly or indirectly, use, disclose, distribute,

print or copy any part of this message or any attachments if you are not

the intended recipient.


From: Bob Jansen [mailto:bobjansen at gmail.com]
Sent: Thursday, June 04, 2015 1:00 PM
To: Bos, Roger
Cc: Joshua Ulrich; r-sig-finance at r-project.org
Subject: Re: [R-SIG-Finance] Getting started with blotter (adding transactions)

Hi Roger,
It could be that it trips over the path your using which is mangled as you can see. You might have better results if you install Rtools to the root of a drive, e.g. C:. At the very least it's one less worry.
On Thu, Jun 4, 2015 at 4:00 PM, Bos, Roger <roger.bos at rothschild.com<mailto:roger.bos at rothschild.com>> wrote:
Jushua, all,

I don't want to take up too much of anyone's time with this, but I want to tell you what I tried:

I installed R 3.2.0 (non-patched) and I uninstalled Rtools 3.3 and re-downloaded it and re-installed it.  I was able to install all my packages, be they from CRAN, R-Forge, or github, except blotter.

When I try to install blotter from source and error message seems to complain about calcPosAvgCost.o:

Warning: running command 'make -f "C:/PROGRA~1/R/R-32~1.0/etc/x64/Makeconf" -f "C:/PROGRA~1/R/R-32~1.0/share/make/winshlib.mk<http://winshlib.mk>" SHLIB="blotter.dll" WIN=64 TCLBIN=64 OBJECTS="calcPosAvgCost.o"' had status 127
ERROR: compilation failed for package 'blotter'

So I went to R-forge and found the zip file for blotter.  I downloaded it and used "Install packages from local zip file" and it seems to have worked.  I was wondering why I was able to install binaries before.  I see that the last windows binary was built on April 15th.  I will wait for the next binary, but if anything thinks of anything else I can try, I would appreciate it.

Thanks,

Roger



***************************************************************
This message and any attachments are for the named person's use only.
This message may contain confidential, proprietary or legally privileged
information. No right to confidential or privileged treatment
of this message is waived or lost by an error in transmission.
If you have received this message in error, please immediately
notify the sender by e-mail, delete the message, any attachments and all
copies from your system and destroy any hard copies. You must
not, directly or indirectly, use, disclose, distribute,
print or copy any part of this message or any attachments if you are not
the intended recipient.



-----Original Message-----
From: Joshua Ulrich [mailto:josh.m.ulrich at gmail.com<mailto:josh.m.ulrich at gmail.com>]
Sent: Thursday, June 04, 2015 8:08 AM
To: Bos, Roger
Cc: Peter Chan; r-sig-finance at r-project.org<mailto:r-sig-finance at r-project.org>
Subject: Re: [R-SIG-Finance] Getting started with blotter (adding transactions)
On Wed, Jun 3, 2015 at 1:21 PM, Bos, Roger <roger.bos at rothschild.com<mailto:roger.bos at rothschild.com>> wrote:
This seems to suggest something is wrong with your Rtools installation.  I get:
Warning: dependencies 'Hmisc', 'RUnit' are not available Package which is only available in source form, and may need compilation of C/C++/Fortran: 'blotter'
Do you want to attempt to install these from sources?
y/n:
<snip package loading>
I just installed R-3.2.0 and Rtools 3.3.0.1958 on 64-bit Windows 7, and I have no issue installing blotter from source.  I do notice that you're running R-patched.  Perhaps that has something to do with your issue?
--
Joshua Ulrich  |  about.me/joshuaulrich<http://about.me/joshuaulrich>
FOSS Trading  |  www.fosstrading.com<http://www.fosstrading.com>
R/Finance 2015 | www.rinfinance.com<http://www.rinfinance.com>
_______________________________________________
R-SIG-Finance at r-project.org<mailto:R-SIG-Finance at r-project.org> mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-finance
-- Subscriber-posting only. If you want to post, subscribe first.
-- Also note that this is not the r-help list where general R questions should go.



--
Met vriendelijke groeten,

Bob Jansen