-
Notifications
You must be signed in to change notification settings - Fork 422
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
Error while building on MacOS Sierra #1024
Comments
Hi @vickydhas, Thanks for contacting use. Here is a workaround (provided you have openssl installed via HomeBrew)
basically on MacOS X Sierra and El Capitan you need to export the PS. Congratulations on getting the round 1024 issue number :D |
Same error If I type $openssl I can get the commands but when i use this LDFLAGS code i still get this same error. |
Before I got the same situation, I just copy openssl source code to the folder where the C code complie, in your case, I think the folder will be .../ejabberd/c_src. |
@vickydhas, did you install openssl from brew or port? Chances are the paths are different then in the example I've sent. Could you please try to find where on your system is the ssl.h file? A simple find command like the following should help: find / -name ssl.h |
I found the old issue here: |
Hello Michal, I am new to this (my bad apology for same), I did fresh install macOSSierra in which I don't have to install openssl. I see the openssl command already in build in the terminal , assume that this is already given by the macOS. But to be sure to your guided instructions I have done following steps so we both are in sync of discussion I installed HomeBrew using following command.
Got all this working ....
Now i have brew just FYI Now what else I can do to get the make command make the mongooseIM github source building. Also I have installed mongooseIM using mongooseim_1.5.1-1-osx-10.9_amd64.dmg which have taken default configuration which I am trying to find how to add more modules that not listed in default ejabber.cfg. |
Ok, since you have brew now, you can install openssl by:
After that please check if you have the
Chances are that the path will be exactly like the one I suggested you in my first response. There is no need to apology for being new into sth. This is great you are discovering new things! |
Hi @vickydhas, |
I see you forgot about exporting
The important thing is that you export the vars before running any Also it would be better if you could link openssl to Could you please show your output for the following command:
|
|
1). In which directory are you trying to run this command? The output suggests me this is not MongooseIM's root directory. 2). That's good, you can use To sum up. Go to MongooseIM's root dir and run this command:
|
Vickys-MBP:openssl vickydhas$ cd ~/Desktop/chatapp/MongooseIM-master |
But if i run with sudo command this is what i got Vickys-MBP:MongooseIM-master vickydhas$ sudo LDFLAGS=-L/usr/local/opt/openssl/lib CFLAGS=-I/usr/local/opt/openssl/include make rel |
I see you have some mess with file permissions now. I have to ask you to remove current sources completely, clone the source code again and try without |
Okay I will try deleting the mongoose code and redownload and try. Do i need to set some permission to specific folder for this. Also as one of my friend advices that OpenSSL have issues on mac so suggest What's your advice michal? On Wednesday, 12 October 2016, Michał Piotrowski notifications@github.com
Sent from my iPhone6+ |
As long as you clone the repo and build the project as the same user, you are all set.
I'd like to learn about this issues. I use MacOS X for day to day development with openssl installed from brew. I don't see a need for running an VM with linux just for that. Other thing is the production system, here I usually use CentOS or Ubuntu :) |
Yeah he mentioned Ubuntu sorry my bad. On Wednesday, 12 October 2016, Michał Piotrowski notifications@github.com
Sent from my iPhone6+ |
I mean Ubuntu or CentOS for your production system. But to try MongooseIM, play with configuration and what not, MacOS X is fine. |
After I followed to clone again and put the folder in some other location I get this. Dont understand where to go from here. Vickys-MBP:MongooseIM vickydhas$ cd /Users/...../mytemp/MongooseIM |
Looks like you got MongooseIM built :) Did you have chance to look at this doc: http://mongooseim.readthedocs.io/en/latest/user-guide/Getting-started/ |
A slight advice, you don't need to use |
Okay i just checked the last line is warning so ignored and see that in rel/mongooseim folder all my executable files are created. I referred the above link but have this confusion. Now my initial DMG is active so if i run the mongooseim command i doubt this ia happening from the DMG installed server. I will check in above link how to make the older server removed and put this new one, and try running the same. |
Sudo is required else its giving me error (1) for some reason , don't know why but will try now. |
Can you advice me as i don't see how can i clean entire previous mongooseIM installed via DMG and migrate this compiled package from source to relevant folders. I read about some configuration script but am not capable to digest its theory. Appreciate if you can guide over this, hope this will resolve my My SQL issue as well. |
In the DMG image there should be and |
Okay I think I tried from non shell prompt so not working lemme give a try On Thursday, 13 October 2016, Michał Piotrowski notifications@github.com
Sent from my iPhone6+ |
YEPPY...... Ok great I uninstalled and cannot see the mongooseim command neither the folders in /usr/local/bin ,etc and lib. I can however go to the rel folder and run the command goin in bin/mongooseim, etc/ejabberd.cfg to change paramters. Ok i think we can close this query with one last question how to put this rel latest compiled stuff into relevant folders like DMG does and setting path so its found everywhere ??. |
The simplest way for trying out or developing would be to add modify your PATH env by adding path to the There is also another way described here: http://mongooseim.readthedocs.io/en/latest/user-guide/release_config/ but on MacOS X I'd recommend the simplest way. |
Ok i thought so , never mind for now I am development so will set the path and then remove if not required. So other etc, logs and other folders are not mattered right as the rel/bin will always take its partner folders and not if stored anywhere. Ok I can close this request but as this is fixed for me. I really want to thank you Michal to handhold me in such good way and teach when things are unknown. Appreciate your work . 👍 💯 :) I'll open the MySQL Query and have discussion there. |
Hello All / Michal, Still same issue again, this time I'll keep it short as I have taken steps all as you've mentioned but seems small logical error.
Secondly I am going to install this on AWS all setup so need assistance to get this fixed. Any help is much appreciated. |
to add on now I don't see and can run the
|
Hi vickydhas, Can you please paste the contents of |
please check for crash logs. 2016-10-17 15:00:29 =CRASH REPORT==== On Monday, 17 October 2016, Piotr Nosek notifications@github.com wrote:
Sent from my iPhone6+ |
Please see my latest comment in your other PR #1031 (comment). This is the same error - Erlang was installed without crypto. |
MongooseIM version: Latest as on github
Installed from: GitHub downloaded source as on this mail link
Erlang/OTP version: latest rev as of available for the Mac
I have installed the erlang , also tried to install mongoose IM with DMG installation process and successful. However if I want to make any customisation and rebuild mongooseIM I have used this source to make the release build.
The make command gives this error at last.
When i type the openssl command on terminal I do get the OpenSSL > shell for executing operations.
Any help is much appreciated.
The text was updated successfully, but these errors were encountered: