-
Notifications
You must be signed in to change notification settings - Fork 3
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
Postgres found by cmake, but not by make (Mac Ventura) #15
Comments
Hi @ultrasaurus! Seems like some CMake + OSX-specific problem. I'll try to take a deeper look over the next few days 😄 Is this critical for you? Since it's about migrating data, do you have another way to import the data? |
Hi @ultrasaurus! I managed to install Reproducing the errorHere are the steps I did to reproduce the error: I installed XCode and Homebrew and ran: After that, I ran:
just like in the instructions. I got the same error as you:
Solution that worked for meI then googled a bit and ran into this SO answer. Hence, I ran the following:
The output was:
Output:
I decided to go for it and ran:
and in the end, ran the last command from the SO answer to check:
Output: I removed the build folder, created a new one, and ran:
The above command is similar to the one in the README, but I changed the version of OpenSSL. After that, the build files were written to the build folder. Let me know if that works for you. |
Nice! Thanks 😄 Since it seems it's all about machine config, should be extend the README page and how? |
@gitbuda I will extend the README. I will just wait a bit for @ultrasaurus, to see if the provided solution helped. |
yeah, I had to do some work to install an older version of SSL, will try with newer one and let you know |
I needed to run...
before this worked:
For cmake to find my version of postgres, I needed to modify the command as:
which was successful (as before), yet
So, I was able to revert my changes to However, I'm still stuck with the same problem where make is not successful. |
@ultrasaurus, I did not manage to reproduce your error. Did you install the XCode, as mentioned in README? Did you have any progress in the meantime? |
yes, I've installed XCode and command-line tools. The issue is around configuring a specific version/installation of Postgres. I think I don't know enough about |
Hi @ultrasaurus,
Also, I found a similar issue; maybe it helps. |
Hi @ultrasaurus, unfortunately, sad news from my side, due to the increased amount of work, we stopped actively working on mgmigrate, this resulted in mgmigrate being tricky to use. We just added a short [notice] (https://github.com/memgraph/mgmigrate#notice) and archived the repo. If you need help with migration to Memgraph, consider joining our Discord community, I would love to help you out, and we can hop on a video call to understand the challenges you are facing with the transition to Memgraph. Feel free to ping me on Discord; my username is also antejavor on Discord. |
attempting to build on M1 Mac, I was able to resolve some, but not all errors.
To make it find postgres on my machine, as well older version of OpenSSL which it seems to require:
To resolve warnings (below) and also find system includes on MacOS, I modified
CMakeLists.txt
to add the following lines right below the version check:cmake runs without error:
when I run make, I see this error:
then the make process continues until it halts at:
How do I make it so it finds Postgres in make?
warning (resolved with changes to CMakeLists.txt)
The text was updated successfully, but these errors were encountered: