Open twitchyvr opened 3 years ago
Hello, sorry for the delay.
I Don’t have a M1 on hand, but I figure it out you need compile DBI in native form in the New CPU
First make sure you have the Xcode command line utilities:
xcode-select —install
The Download from Metacpan two modules:
DBI: https://cpan.metacpan.org/authors/id/T/TI/TIMB/DBI-1.643.tar.gz https://cpan.metacpan.org/authors/id/T/TI/TIMB/DBI-1.643.tar.gz
And DBD::PG https://cpan.metacpan.org/authors/id/T/TU/TURNSTEP/DBD-Pg-3.14.2.tar.gz https://cpan.metacpan.org/authors/id/T/TU/TURNSTEP/DBD-Pg-3.14.2.tar.gz
First install DBI
tar -xzvf DBD-Pg-3.14.2.tar.gz cd DBD-Pg-3.14.2.tar.gz Perl Makefila.PL make sudo make install
The make file try to compile to your architecture, the do the same for the DBD::Pp package, in the install. Process ask for the path to pg_config
Usually is this:
/Applications/Postgres.app/Contents/Versions/latest/bin/pg_config
If the make file resolved the compiling dependencies, must work.
Let me know if work for you.
Best Regards… Fernando “El Pop” Romo
On 2 Feb 2021, at 11:07, Matt Rogers notifications@github.com wrote:
I'm not sure who to ask, and I'm sure this is more related to Perl or Postgre - but I am using a new Apple Silicon MacBook Pro M1 and have this issue when I reach the step "cpan[4]>install DBD::Pg" in your instructions and I'm not sure where to go from here. Any potential assistance would be greatly appreciated.
Matts-2020-MacBook-Pro-M1:~ root# perl -MCPAN -e 'install Bundle::DBD::Pg' Reading '/var/root/.cpan/Metadata' Database was generated on Tue, 02 Feb 2021 02:17:02 GMT DBI is up to date (1.643). Running install for module 'DBD::Pg' Checksum for /var/root/.cpan/sources/authors/id/T/TU/TURNSTEP/DBD-Pg-3.14.2.tar.gz ok 'YAML' not installed, will not store persistent state Configuring T/TU/TURNSTEP/DBD-Pg-3.14.2.tar.gz with Makefile.PL Configuring DBD::Pg 3.14.2 Path to pg_config? /Applications/Postgres.app/Contents/Versions/latest/bin/pg_config PostgreSQL version: 130001 (default port: 5432) POSTGRES_HOME: (not set) POSTGRES_INCLUDE: /Applications/Postgres.app/Contents/Versions/13/include POSTGRES_LIB: /Applications/Postgres.app/Contents/Versions/13/lib OS: darwin Checking if your kit is complete... Looks good Warning (mostly harmless): No library found for -lm Using DBI 1.643 (for perl 5.028002 on darwin-thread-multi-2level) installed in /System/Library/Perl/Extras/5.28/darwin-thread-multi-2level/auto/DBI/ Generating a Unix-style Makefile Writing Makefile for DBD::Pg Writing MYMETA.yml and MYMETA.json TURNSTEP/DBD-Pg-3.14.2.tar.gz /usr/bin/perl Makefile.PL -- OK Running make for T/TU/TURNSTEP/DBD-Pg-3.14.2.tar.gz objc[910]: Class AMSupportURLConnectionDelegate is implemented in both ?? (0x1f839b8f0) and ?? (0x1162842b8). One of the two will be used. Which one is undefined. objc[910]: Class AMSupportURLSession is implemented in both ?? (0x1f839b940) and ?? (0x116284308). One of the two will be used. Which one is undefined. cp Pg.pm blib/lib/DBD/Pg.pm cp lib/Bundle/DBD/Pg.pm blib/lib/Bundle/DBD/Pg.pm Running Mkbootstrap for Pg () chmod 644 "Pg.bs" "/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Pg.bs blib/arch/auto/DBD/Pg/Pg.bs 644 make: *** No rule to make target
/System/Library/Perl/Extras/5.28/darwin-thread-multi-2level/auto/DBI/Driver_xst.h', needed by
Pg.xsi'. Stop. TURNSTEP/DBD-Pg-3.14.2.tar.gz /usr/bin/make -- NOT OK — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/elpop/widget-server/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAYY4TME7ON7TGVEFIUZA3S5AWOTANCNFSM4W7CUO5A.
Fantastic! I will try this thank you.
On Feb 6, 2021, at 2:21 PM, Fernando Romo notifications@github.com wrote:
Hello, sorry for the delay.
I Don’t have a M1 on hand, but I figure it out you need compile DBI in native form in the New CPU
First make sure you have the Xcode command line utilities:
xcode-select —install
The Download from Metacpan two modules:
DBI: https://cpan.metacpan.org/authors/id/T/TI/TIMB/DBI-1.643.tar.gz https://cpan.metacpan.org/authors/id/T/TI/TIMB/DBI-1.643.tar.gz
And DBD::PG https://cpan.metacpan.org/authors/id/T/TU/TURNSTEP/DBD-Pg-3.14.2.tar.gz https://cpan.metacpan.org/authors/id/T/TU/TURNSTEP/DBD-Pg-3.14.2.tar.gz
First install DBI
tar -xzvf DBD-Pg-3.14.2.tar.gz cd DBD-Pg-3.14.2.tar.gz Perl Makefila.PL make sudo make install
The make file try to compile to your architecture, the do the same for the DBD::Pp package, in the install. Process ask for the path to pg_config
Usually is this:
/Applications/Postgres.app/Contents/Versions/latest/bin/pg_config
If the make file resolved the compiling dependencies, must work.
Let me know if work for you.
Best Regards… Fernando “El Pop” Romo
On 2 Feb 2021, at 11:07, Matt Rogers notifications@github.com wrote:
I'm not sure who to ask, and I'm sure this is more related to Perl or Postgre - but I am using a new Apple Silicon MacBook Pro M1 and have this issue when I reach the step "cpan[4]>install DBD::Pg" in your instructions and I'm not sure where to go from here. Any potential assistance would be greatly appreciated.
Matts-2020-MacBook-Pro-M1:~ root# perl -MCPAN -e 'install Bundle::DBD::Pg' Reading '/var/root/.cpan/Metadata' Database was generated on Tue, 02 Feb 2021 02:17:02 GMT DBI is up to date (1.643). Running install for module 'DBD::Pg' Checksum for /var/root/.cpan/sources/authors/id/T/TU/TURNSTEP/DBD-Pg-3.14.2.tar.gz ok 'YAML' not installed, will not store persistent state Configuring T/TU/TURNSTEP/DBD-Pg-3.14.2.tar.gz with Makefile.PL Configuring DBD::Pg 3.14.2 Path to pg_config? /Applications/Postgres.app/Contents/Versions/latest/bin/pg_config PostgreSQL version: 130001 (default port: 5432) POSTGRES_HOME: (not set) POSTGRES_INCLUDE: /Applications/Postgres.app/Contents/Versions/13/include POSTGRES_LIB: /Applications/Postgres.app/Contents/Versions/13/lib OS: darwin Checking if your kit is complete... Looks good Warning (mostly harmless): No library found for -lm Using DBI 1.643 (for perl 5.028002 on darwin-thread-multi-2level) installed in /System/Library/Perl/Extras/5.28/darwin-thread-multi-2level/auto/DBI/ Generating a Unix-style Makefile Writing Makefile for DBD::Pg Writing MYMETA.yml and MYMETA.json TURNSTEP/DBD-Pg-3.14.2.tar.gz /usr/bin/perl Makefile.PL -- OK Running make for T/TU/TURNSTEP/DBD-Pg-3.14.2.tar.gz objc[910]: Class AMSupportURLConnectionDelegate is implemented in both ?? (0x1f839b8f0) and ?? (0x1162842b8). One of the two will be used. Which one is undefined. objc[910]: Class AMSupportURLSession is implemented in both ?? (0x1f839b940) and ?? (0x116284308). One of the two will be used. Which one is undefined. cp Pg.pm blib/lib/DBD/Pg.pm cp lib/Bundle/DBD/Pg.pm blib/lib/Bundle/DBD/Pg.pm Running Mkbootstrap for Pg () chmod 644 "Pg.bs" "/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Pg.bs blib/arch/auto/DBD/Pg/Pg.bs 644 make: *** No rule to make target
/System/Library/Perl/Extras/5.28/darwin-thread-multi-2level/auto/DBI/Driver_xst.h', needed by
Pg.xsi'. Stop. TURNSTEP/DBD-Pg-3.14.2.tar.gz /usr/bin/make -- NOT OK — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/elpop/widget-server/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAYY4TME7ON7TGVEFIUZA3S5AWOTANCNFSM4W7CUO5A.— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
I'm not sure who to ask, and I'm sure this is more related to Perl or Postgre - but I am using a new Apple Silicon MacBook Pro M1 and have this issue when I reach the step "cpan[4]>install DBD::Pg" in your instructions and I'm not sure where to go from here. Any potential assistance would be greatly appreciated.