[fpc-pascal] connect to postgres db with fpc Mac OS X LION
Hi all I thank you in adavance for your support :-) I can't connect to postgres db in foc /mac osx Liion I get the message > Connection to database template1 failed. > fe_sendauth: no password supplied > My postgres server is woryking ok. Mac oS X Lion -- --- César Espinoza Soto - ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Insert into ... mysql
Hi all !! I did! I can now connect and query to mysql fpc 2.2.4, console, Macosx 10.5 leopard, Mac book Intel But I can't (may be I dont know :-( ) insert data in a table connect mysql ... ok select db ... ok . new(consulta); consultastr:='INSERT INTO lugares (lugar) values (''Sala'')'; strPCopy(consulta,consultastr); writeln ('Executing query : ',Consulta,'...'); if (mysql_query(sock,consulta) < 0) then begin Writeln (stderr,'Query failed '); writeln (stderr,mysql_error(sock)); Halt(1); end; -- What is wrong? Thanks in advance -- --- César Espinoza Soto - ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] fpc & mysql 5.0 in mac osx 10.5 intel
how can I use mysql 5.0 in mac OS X 10.5 Intel? I did it in OSX 10.4 ppc, but not in 10.5 Intel I get the message ld: library not found for -llmysqlclient Thanks in advance -- --- César Espinoza Soto - ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Error: Assembler as not found, switching to external assembling
Hi all I'm sorry in advanced about my poor english (I'm spanish talking) I am returning to pascal, and in OSX 10.5.5, fpk 2.2.2 (installed from .dmg) I tried this: program first; var a:integer; begin a:=1; writeln (a); end. But when I tried compling the response was: Free Pascal Compiler version 2.2.2 [2008/08/03] for i386 Copyright (c) 1993-2008 by Florian Klaempfl Target OS: Darwin for i386 Compiling program1.pas Assembling first Error: Assembler as not found, switching to external assembling Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted Error: /usr/local/bin/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled) I see it was generated a file with extension .s I know I am a rookie in this, but can anyone help me? -- ------- César Espinoza Soto - ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal