edzer / sp

Classes and methods for spatial data
http://edzer.github.io/sp/
127 stars 27 forks source link

Problem installing the package #25

Closed gdistiller closed 7 years ago

gdistiller commented 7 years ago

Hi I hope this is the right forum to try and get some help related to problems installing the sp package on more recent versions of R. I am getting the following error:

I have no idea what could be causing the surfaceArea error message. Any advice would be much appreciated.

Thanks

Greg

edzer commented 7 years ago

You didn't say which command you used to install the package. None of the 13 CRAN flavours have such troubles; maybe also worth reading Writing R extension?

gdistiller commented 7 years ago

Hi and thanks so much for the quick reply. I just ran the install.packages() command. What I didn’t say is that I am trying to get something running on a cluster and so I am using putty to access the server and then trying to install sp there. On my own desktop I have managed to install the package under R version 3.3.1, but I can see that the version I have there is 1.2.3 so not sure if it has something to do with the latest version? Do you think it could be something related to the cluster architecture? The install works on an earlier version of R (3.2.0) so I’m really not sure what is going on…

From: Edzer Pebesma [mailto:notifications@github.com] Sent: Wednesday, March 29, 2017 9:20 AM To: edzer/sp sp@noreply.github.com Cc: Greg Distiller greg.distiller@uct.ac.za; Author author@noreply.github.com Subject: Re: [edzer/sp] Problem installing the package (#25)

You didn't say which command you used to install the package. None of the 13 CRAN flavourshttps://protect-za.mimecast.com/s/l1pRBnswp17Ie have such troubles; maybe also worth reading Writing R extensionhttps://protect-za.mimecast.com/s/zK8dB2fN78QIz?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://protect-za.mimecast.com/s/rWgRBLcQNm0fv, or mute the threadhttps://protect-za.mimecast.com/s/ZO8RBQCDzbKf1.

Disclaimer - University of Cape Town This e-mail is subject to UCT policies and e-mail disclaimer published on our website at http://www.uct.ac.za/about/policies/emaildisclaimer/ or obtainable from +27 21 650 9111. If this e-mail is not related to the business of UCT, it is sent by the sender in an individual capacity. Please report security incidents or abuse via csirt@uct.ac.za

edzer commented 7 years ago

If I install it (on ubuntu), I see, for this file:

gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG      -fpic  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c surfaceArea.c -o surfaceArea.o

and that looks pretty different. Why does yours not use -std=gnu99?

gdistiller commented 7 years ago

Edzer I’m sorry but I have no idea. I am a R user and write functions etc but do not really understand the underlying technical bits of the installation. To be honest I don’t have any idea what you are talking about. I can try enlist the help of the technician that maintains the cluster but I know that he is not familiar with R and so will probably not be of much help. Do you think it can have anything to do with the location of the library?

From: Edzer Pebesma [mailto:notifications@github.com] Sent: Wednesday, March 29, 2017 9:35 AM To: edzer/sp sp@noreply.github.com Cc: Greg Distiller greg.distiller@uct.ac.za; Author author@noreply.github.com Subject: Re: [edzer/sp] Problem installing the package (#25)

If I install it (on ubuntu), I see, for this file:

gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c surfaceArea.c -o surfaceArea.o

and that looks pretty different. Why does yours not use -std=gnu99?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://protect-za.mimecast.com/s/XDdRBEsKX82U6, or mute the threadhttps://protect-za.mimecast.com/s/7xX4Bvfa5vgs0.

Disclaimer - University of Cape Town This e-mail is subject to UCT policies and e-mail disclaimer published on our website at http://www.uct.ac.za/about/policies/emaildisclaimer/ or obtainable from +27 21 650 9111. If this e-mail is not related to the business of UCT, it is sent by the sender in an individual capacity. Please report security incidents or abuse via csirt@uct.ac.za

edzer commented 7 years ago

No.

gdistiller commented 7 years ago

OK so are you saying that you have no idea why the installation is failing?

From: Edzer Pebesma [mailto:notifications@github.com] Sent: Wednesday, March 29, 2017 11:08 AM To: edzer/sp sp@noreply.github.com Cc: Greg Distiller greg.distiller@uct.ac.za; Author author@noreply.github.com Subject: Re: [edzer/sp] Problem installing the package (#25)

No.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://protect-za.mimecast.com/s/E7RkBlS3Mxwu1, or mute the threadhttps://protect-za.mimecast.com/s/REgRBqHA03vsW.

Disclaimer - University of Cape Town This e-mail is subject to UCT policies and e-mail disclaimer published on our website at http://www.uct.ac.za/about/policies/emaildisclaimer/ or obtainable from +27 21 650 9111. If this e-mail is not related to the business of UCT, it is sent by the sender in an individual capacity. Please report security incidents or abuse via csirt@uct.ac.za

edzer commented 7 years ago

No, I just said that I do not think it has to do with the custom directory; to give advice, I'd have to know what kind of computer architecture you're working on (operating system, versions), which compilers it runs (and versions), which R version and how that was installed, to start with, but even with that knowledge I'm not sure I could give you advice.

gdistiller commented 7 years ago

Ok, well I’ve got it working on a different (earlier) version of R so I’m not sure it will then be worth the time trying to figure this out. Plus I would need to get the technician involved as I have little to no understanding of the architecture, and I have no idea of his willingness to try sort it out.

Thanks again for your quick replies…

Greg

From: Edzer Pebesma [mailto:notifications@github.com] Sent: Wednesday, March 29, 2017 1:34 PM To: edzer/sp sp@noreply.github.com Cc: Greg Distiller greg.distiller@uct.ac.za; Author author@noreply.github.com Subject: Re: [edzer/sp] Problem installing the package (#25)

No, I just said that I do not think it has to do with the custom directory; to give advice, I'd have to know what kind of computer architecture you're working on (operating system, versions), which compilers it runs (and versions), which R version and how that was installed, to start with, but even with that knowledge I'm not sure I could give you advice.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://protect-za.mimecast.com/s/rWgRBLcQwQkua, or mute the threadhttps://protect-za.mimecast.com/s/ZO8RBQCDODrIn.

Disclaimer - University of Cape Town This e-mail is subject to UCT policies and e-mail disclaimer published on our website at http://www.uct.ac.za/about/policies/emaildisclaimer/ or obtainable from +27 21 650 9111. If this e-mail is not related to the business of UCT, it is sent by the sender in an individual capacity. Please report security incidents or abuse via csirt@uct.ac.za