Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Instructions for OS X #9

Open
ben-albrecht opened this issue Dec 18, 2017 · 7 comments
Open

Build Instructions for OS X #9

ben-albrecht opened this issue Dec 18, 2017 · 7 comments
Assignees
Labels

Comments

@ben-albrecht
Copy link
Collaborator

It would be good to include OS X instructions once we get it working.

Currently, I am having difficulty getting the tests to build on OS X. If I am unable to get it working, I'll document the errors in an issue.

@marcoscleison
Copy link
Collaborator

@ben-albrecht , I recognize how important is this issue for the OS X users. My big problem is that I do not have any MAC near me! :( Sadly Apple products are VERY expensive here in Brazil). Maybe, @buddha314 may have more information about this.
However, I will try to guide you. You will need:
(for mysql)

  1. Have brew installed.
    2)have makefile tools (I think that OS has already)
  2. Install mysql.
brew install mysql

Usually, it is installed in /usr/local
If environment libs is not set, you can try:

export DYLD_LIBRARY_PATH=/usr/local/mysql/lib:$DYLD_LIBRARY_PATH
  1. Use pkg-config --libs mysql to get mysql libs flags and add them in the example makefile.

I do not know if this can help.
Tell me more.

@buddha314
Copy link
Collaborator

I haven't tried running the tests, only using the library. I'l see if I can give this a shot today.

@buddha314
Copy link
Collaborator

Sorry, I neglected this.

I just ran make and got

chpl -o ./bin/query_builder_ex ./examples/query_builder_ex.chpl  -M ./src -I/usr/include/postgresql/
mv: rename /var/folders/g5/4zwyfk513hd94tjs1fm5mdq00000gn/T//chpl-buddha-80068.deleteme/query_builder_ex.tmp to ./bin/query_builder_ex: No such file or directory
make[1]: *** [/var/folders/g5/4zwyfk513hd94tjs1fm5mdq00000gn/T//chpl-buddha-80068.deleteme/query_builder_ex.tmp] Error 1
error: compiling generated source
make: *** [query_builder_ex] Error 1

However, I have been able to use it as a module recently with the option -M/<cdo_home>/src

@buddha314
Copy link
Collaborator

buddha314 commented Jan 16, 2018

@ben-albrecht are you getting an error using CDO like

> /Users/buddha/github/cdo/src/Cdo.chpl:1571: warning: proc returns an iterator that will be immediately converted to an array
> timedexec: target program died with signal 11, without coredump

This just started for me when I did a make clobber on my version of Chapel.

@ben-albrecht
Copy link
Collaborator Author

I believe the errors I encountered were related to dependencies. That error looks unfamiliar to me.

@marcoscleison
Copy link
Collaborator

@ben-albrecht Unfortunately, I cannot help with this issue for now. I know that you get things done using a docker container.
Do you think that I could close this issue for now?

@ben-albrecht
Copy link
Collaborator Author

I think this issue should remain open until someone documents the process of getting it working on OS X. You can consider this in @buddha314's or my court though, since you don't have access to an OS X machine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants