'analysing data using R, AWS lambda and python
I was trying to replicate this post created by Amazon web services in to using R and AWS lambda link. Its corresponding GitHub link is at link. Whilst running the following commands
cp /usr/lib64/libblas.so.3 $HOME/lambda/lib/
cp /usr/lib64/liblapack.so.3 $HOME/lambda/lib/
I got the following errors correspondingly.
cp: cannot stat '/usr/lib64/libblas.so.3': No such file or directory
cp: cannot stat '/usr/lib64/liblapack.so.3': No such file or directory
However, I managed to circumvent it by specifically installing the blas and lapack libraries
sudo yum -y install blas
sudo yum -y install lapack
However, on running the AWS lambda function - I'm getting the following module initialisation error
module initialization error: lib/libRrefblas.so: undefined symbol: xerbla_
Can someone help with this? Thanks. There's also an issue raised in the last two days with respect to this.
Update: Found this blog that explains the process of running R on AWS lambda link. It is up-to-date. As the author notes - it's befuddling that manual loading of the libraries cause the xerbla_ error.
Solution 1:[1]
I couldn't just remove libRrefblas.so because my version of R was looking for it (even though I had made sure to install Lapack and BLAS before installing R). I had to
rm lib/libRrefblas.so
cp /usr/lib64/libblas.so.3 lib/
mv lib/libblas.so.3 lib/libRrefblas.so
Solution 2:[2]
i think you can't do that the only way is "Disable JavaScript" parameter on Webview by javascriptMode: JavascriptMode.unrestricted,
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | theShobster |
| Solution 2 | Samer Saied |
