Tips and Tricks: Difference between revisions

From tehowiki
Jump to navigation Jump to search
imported>Gfis
Perl CPAN
imported>Gfis
No edit summary
Line 1: Line 1:
===Positive returncode in makefile===
diff -w -y --suppress-common-lines --width=32  bf.tmp pn.tmp '''|| :'''
                                                              ^^^^
===Running Delphi programs under Linux===
===Running Delphi programs under Linux===
* Install <code>wine</code> and <code>xvfb</code> for headless terminals.
* Install <code>wine</code> and <code>xvfb</code> for headless terminals.
* For Intraweb applications, determine a free port, for example 8080.
* For Intraweb applications, determine a free port, for example 8080.
* Create and fill a MySQL database on the lLinux server, and configure that database in the Delphi application.
* Create and fill a MySQL database on the Linux server, and configure that database in the Delphi application.
* Move the <code>delphi.exe</code> together with <code>libmysql.dll</code> (version 5.59 extracted from a MySQL-Windows-Distribution) to some directory under Linux.
* Move the <code>delphi.exe</code> together with <code>libmysql.dll</code> (version 5.59 extracted from a MySQL-Windows-Distribution) to some directory under Linux.
* <code>xvfb-run '''wine''' delphi.exe</code>, then Ctrl-Z and <code>bg</code>
* <code>xvfb-run '''wine''' delphi.exe</code>, then Ctrl-Z and <code>bg</code>

Revision as of 07:48, 25 October 2018

Positive returncode in makefile

diff -w -y --suppress-common-lines --width=32  bf.tmp pn.tmp || :
                                                             ^^^^

Running Delphi programs under Linux

  • Install wine and xvfb for headless terminals.
  • For Intraweb applications, determine a free port, for example 8080.
  • Create and fill a MySQL database on the Linux server, and configure that database in the Delphi application.
  • Move the delphi.exe together with libmysql.dll (version 5.59 extracted from a MySQL-Windows-Distribution) to some directory under Linux.
  • xvfb-run wine delphi.exe, then Ctrl-Z and bg
  • Open the application in a browser with the URL http://www.punctum.com:8080/$/.

Perl CPAN

  • perl -MCPAN -e shell, autoconfig follows
  • amend environment:
PATH="/home/User/perl5/bin${PATH:+:${PATH}}"; export PATH;
  (add "/home/User/perl5/bin" to PATH)
PERL5LIB="/home/User/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB;
PERL_LOCAL_LIB_ROOT="/home/User/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"; export PERL_LOCAL_LIB_ROOT;
PERL_MB_OPT="--install_base \"/home/User/perl5\""; export PERL_MB_OPT;
PERL_MM_OPT="INSTALL_BASE=/home/User/perl5"; export PERL_MM_OPT;
  • install bigint