-
-
Notifications
You must be signed in to change notification settings - Fork 547
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
Can't find libsybdb.dylib on mac #161
Comments
The first bug has been fixed meanwhile, so please consider building from sources to see the bug disappear. If you're already using brew, building pgloader is quite easy and described in the docs, see INSTALL.md file. Then the MySQL migration is another error entirely, you can work around it already by adding the option |
Thanks |
PostgreSQL requires that an idenfitier begin with letters or underscore only, so an identifier that begins with a digit must be quoted. In the current coding pgloader will unecessarily quote some identifiers that begin with a unicode accentuated letter, but that's only cosmetic and isn't worth worrying about (famous last words).
If you have the opportunity to try with the fix and with the option |
When I compile from source:
press continue then:
|
Ah, yes sorry, to compile from source yes you need to install freetds, |
pgloader working without libsybdb.dylib well (I remove freetds after compilation) |
Perfect, thanks for your feedback! |
I'm getting this error even with FreeTDS installed. I'm using MacOS with MacPorts so the library is at /opt/local/lib/libsybdb.dylib |
Can you try to set your lib in the library path for MacOS that way:
Note that I'm using a mac with brew myself and didn't need anything like that. Of course it might just be that brew is doing it for me (by just installing files in /usr/local/lib):
|
There are good reasons for using MacPorts over Brew. But each to their own. I normally don't have a problem compiling anything as a result of installing MacPorts. What is the name of the dyld command I should be looking for? I only seem to have /usr/lib/system/libdyld.dylib but setting this does not help. |
Try:
|
Sorry, this doesn't solve the problem. What other components have you installed with Brew that might be relevant? |
Can you post the entire error message you get so that I can investigate better? |
Sure.
|
I'm short of ideas now, I'm not versed into the details of the dynamic linker enough to help you further :( |
Me, neither. :-( It is possible to use pgloader by passing the path manually every time it's run. I tried this trick when compiling but it didn't work. Seems to be a difference between "evaluated" and "unevaluated": |
Have you tried DYLD_LIBRARY_PATH=/opt/local/lib make? That worked for me with macports. |
No, that works. Still have to set
|
Ugh, you're right, i have a similar problem, though git errors out with the _iconv symbol lookup error. This worked a while ago, so not sure what changed....after playing around i got this working:
which at least compiles pgloader without errors on my OSX installation. It looks like the problem is in mixing binaries from OSX and macports with DYLD_LIBRARY_PATH in this specific case, but to get the real root cause someone would have to dig deeper. |
Having an install target to copy to /usr/local/lib would solve that conflict. |
@Enalmada pgloader is already known to work on systems that use brew but that's because the setup that Dmitri has. Fixing this properly unfortunately requires detailed knowledge of some Mac internals. :-/ |
Just following up here. I ran into the same issue today compiling using macports (haven't used brew on this system). I was able to get a clean build without having to disable compression after symlinking /usr/local/lib to /opt/local/lib. Note that I did not have anything installed to /usr/local/lib so I didn't lose anything here. |
Thanks for providing a solution here @johnzimm ! Meanwhile it's also possible to use the pgloader docker image, either from the |
Returning to this after a couple of years: seems that FreeTDS is an impicit dependency. The following worked for me:
Then cd into the checkout, |
On Mojave, I did:
As a reference, this is the output of
|
Just trying again on MacOS and get the error below. I guess this is related to BerkleyDB or something similar. ; Loading "pgloader" debugger invoked on a UIOP/LISP-BUILD:COMPILE-FILE-ERROR in thread
Just seen that this error has been reported in #940 , will post any follow up there. |
I think you need to |
I downloaded package pgloader-3.2.0.pkg installed and try to run.
Then if I try to migrate data from mysql to postgresq, I get this:
Seems like postgres don't like column name starting with number
But it imports data correctly
The text was updated successfully, but these errors were encountered: