missing rinside.h

Everything related to development of the jamovi platform

by decuser » Wed Apr 15, 2020 3:28 am

Hi, I'm attempting to build from github source (1.2.16) on mac. I'm following https://dev.jamovi.org/info_project-structure.html and have partially succeeded in getting through the build process:

Electron:
Code: Select all
cd electron
npm install


There were a few warnings and vulnerabilities reported, but no errors.

Server
Code: Select all
cd server
python3 setup.py build_ext --inplace
...
ModuleNotFoundError: No module named 'Cython'

pip install cython

python3 setup.py build_ext --inplace
...
FileNotFoundError: [Errno 2] No such file or directory: 'protoc': 'protoc'

brew install protobuf

python3 setup.py build_ext --inplace
...
ld: warning: directory not found for option '-L/Users/wsenn/sandboxes/../Frameworks'


Engine
Code: Select all
cd engine
make
...
fatal error: 'nanomsg/nn.h' file not found
brew install nanomsg

make
...
fatal error: 'RInside.h' file not found


I don't know how to solve this one. Seems to need R configured in a certain way.

My questions are:
1. is there a "How to build Jamovi from Source" document that I should be following? I didn't see anything in the source that discussed build dependencies or anything like it.
2. How do I get rinside.h in the right location.

I'd like to be able to build Jamovi from source on the off chance that I might someday be able to contribute a fix or otherwise make myself useful :).

Thanks.
decuser
 
Posts: 13
Joined: Tue Apr 07, 2020 2:59 am

by jonathon » Wed Apr 15, 2020 3:34 am

ah, the easiest way to build jamovi on macOS is to use our dev bundle.

https://www.jamovi.org/downloads/jamovi-dev.zip

if you navigate to the `jamovi.app/Contents/Resources` folder, you'll find a package.json which contains a bunch of different build commands.

you can issue commands like:

npm run build:client
npm run build:server
npm run build:analyses:jmv

depending on which component you're wanting to build.

let me know how you get on. you will need to install a handful of tools (homebrew is the easiest way). let me know if you get stuck.

jonathon
User avatar
jonathon
 
Posts: 1379
Joined: Fri Jan 27, 2017 10:04 am

by jonathon » Wed Apr 15, 2020 3:35 am

... or if you want a slack invite. this might be easier to figure out over slack.

cheers

jonathon
User avatar
jonathon
 
Posts: 1379
Joined: Fri Jan 27, 2017 10:04 am

by decuser » Wed Apr 15, 2020 2:21 pm

jonathon wrote:
let me know how you get on. you will need to install a handful of tools (homebrew is the easiest way). let me know if you get stuck.

jonathon


OK. I am on it. I use homebrew already, so that's no problem. When I try to build the server, it complains about python:
Could not find platform independent libraries <prefix>
but if I set the prefix to /usr/bin, then it complains about missing encodings.

I'm guessing my pyenv installed python 3.7 is somehow the issue. When I set PYTHONHOME and PYTHONBIN to my pyenv install, it just complains about missing encodings.

I'll await the slack invite.

Will
decuser
 
Posts: 13
Joined: Tue Apr 07, 2020 2:59 am


Return to jamovi development

cron