-
Notifications
You must be signed in to change notification settings - Fork 36
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
Silly question, but I just can't get this working from get go. #47
Comments
You need several gems, which are downloaded as dependecies when you run You could also manually fetch all dependencies by following all runtime dependencies of https://rubygems.org/gems/pg-ldap-sync recursively and press "download" at all of them. For the If all the gems are installed the command should be executed as described:
|
Thanks a bundle, Lars!
I'll give it a shot (or more, whatever it takes).
Thanks for your time and efforts with pg-ldap-sync (That really should be
bought and included by postgresql) 😉 !
/Brian
…On Tue, 7 Jan 2025 at 16:07, Lars Kanis ***@***.***> wrote:
You need several gems, which are downloaded as dependecies when you run gem
install pg-ldap-sync at an online computer. You can take the files from
c:\Ruby33-x64\lib\ruby\gems\3.3.0\cache\*.gem after install and copy it
to the offline system. Then the files can be installed offline by running gem
install pg-ldap-sync-0.5.0.gem from the directory the gems are stored.
You could also manually fetch all dependencies by following all runtime
dependencies of https://rubygems.org/gems/pg-ldap-sync recursively and
press "download" at all of them. For the pg gem you need the
x64-mingw-ucrt platform version.
If all the gems are installed the command should be executed as described:
pg_ldap_sync -c my_config.yaml -vv
—
Reply to this email directly, view it on GitHub
<#47 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKVZ2CVDZMIGRNMOAJMI5N32JPUR7AVCNFSM6AAAAABUX3R47CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNZVGUZDSOBSGI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I have a small additional question. I managed to get the gem installed, and create my config file - but the test with pg_ldap_sync -c my_config.yaml -vv -t actually failed. I am waiting for the details to get out from my environment to internet, but the main reason seems to be that ruby/gem expects files to be with Linux directory syntax "/" and fails with "specified module could not be found" (C:/RubyPath/To/pg_ext.so) But Windows have no problems finding that pg_ext.so if I do a "DIR C:\RubyPath\To\pg_ext.so" (Created today when I installed it with:
(The subst was apparently needed because without, gem install failed with some postgres err that it couldn't find pg_config) Is there a step in "installing Ruby on Windows" that I might have skipped somehow? |
Here's the details from failing to run the "pg_ldap_sync -c my_config.yaml -vv -t" on my Windows server that was installed, using the gem(s) from an online server's ruby 3.3.6 installation (I'm suspecting that the gem used was actually created on a Linux server): TESTS:
Notice the wrong "/", changing them to "", and the files magically appears ? :)
Does this also have a simple fix in the world of linux/windows incompatibilities ? |
You need the latest pg gem version for platform |
Ruby is a steep and weird-ish learning curve for this dude :) Oh - could any of the stunts I do in Ruby/gems installation, in any way affect the currently installed postgresql windows database and it's adiitional configurations? |
Oh, sorry. I see now - the link to rubygems lists requirements. Thanks! |
Ay-ay-ay! Is there a special trick to persuade a Linux machine to fetch the windows version of a gem (the pg x64-mingw-ucrt)? |
Go to https://rubygems.org/gems/pg select 'all versions' then the needed version, then 'download' in the right panel. |
Oh - snap ;) As we say here in Denmark: "The first thing you go blind on, is the eye"! |
It installed - that's so great! However the gem install succeeds, yet complains about not being able to reach rubygems.org for some 'specs.4.8' - I guess that is slightly irrelevant and something internally related to ruby/gem/install itself. Oh, and I stumbled over a slight issue with my understanding of yaml syntax - you can forget about "tab" ;) I would consider this ruby-first-timer-course as completed - thanks for assisting, Lars! :D |
Pardon my obvious ignorance here - this is my first attempt with Ruby/Gems.
If I get this "zipfile/gem", then what is the procedure to install it on the offline inside of a workplace, where there is NO connection outside.
I'm on a Window server and Ruby 3.3.6 "with devkit" is successfully installed.
I downloaded via the "https://github.com/larskanis/pg-ldap-sync/archive/refs/heads/master.zip" and when copied/unzipped on the windows server, it looks as if it contains the same files as on "https://github.com/larskanis/pg-ldap-sync"
Every gem install/check/dependency/info whatnot (--local --path) pg-ldap-sync I've tried fails miserably.
I just know there's something banal I have missed, being a n00b here :)
The text was updated successfully, but these errors were encountered: