I have a sybase database in a file. How do I determine for which version of sybase it is for? - sybase-asa

I've been handed a file which appears to me to be a Sybase database file from some older Sybase version. I have d-loaded the latest sybase package from sybase and tried using that to connect to the contents but failed. Can someone suggest to me how to determine which version of sybase (and perhaps even which sybase db product) my file represents?
This is how the beggining of the file looks in a text editor:
I ě ^şzÚ ÖK n´Ą ÍĄ YŘ l f ˙˙˙˙˙˙˙˙ ˙˙˙˙˙˙˙˙WATCOM
International Corp., Copyright (c)
1987, 1994 WATCOM International Corp.,
Copyright (c) 1987, 1994 WATCOM
International Corp., Copyright (c)
1987, 1994 WATCOM International Corp.,
Copyright (c) 1987, 1994 WATCOM
International Corp., Copyright (c)
1987, 1994 WATCOM International Corp.,
Copyright (c) 1987, 1994 WATCOM
International Corp., Copyright (c)
1987, 1994 WATCOM International Corp.,
Copyright (c) 1987, 1994 WATCOM
International Corp., Copyright (c)
1987, 1994 WATCOM International Corp.,
Copyright (c) 1987, 1994 WATCOM
International Corp., Copyright (c)
1987, 1994 WATCOM International Corp.,
Copyright (c) 1987, 1994 WATCOM
International Corp., Copyright (c)
1987, 1994 WATCOM International Corp.,
Copyright (c) 1987, 1994 WATCOM
International Corp., Copyright (c)
1987, 1994 WATCOM International Corp.,
Copyright (c) 1987, 1994 WATCOM
International Corp., Copyright (c)
1987, 1994 WATCOM International Corp.,
Copyright (c) 1987, 1994 WATCOM
International Corp., Copyright (c)
1987, 1994 WATCOM International Corp.,
Copyright (c) 1987, 1994 WATCOM
International Corp., Copyright (c)
1987, 1994 WATCOM International Corp.,
Copyright (c) 1987, 1994 WATCOM
International Corp., Copyright (c)
1987, 1994 WATCOM International Corp.,
Copyright (c) 1987, 1994 WATCOM
International Corp., Copyright (c)
1987, 1994 WATCOM International Corp.,
Copyright (c) 1987, 1994 WATCOM
International Corp., Copyright (c)
1987, 1994 WATCOM International Corp.,
Copyright (c) 1987, 1994 WATCOM
International Corp., Copyright (c)
1987, 1994 WATCOM International Corp.,
Copyright (c) 1987, 1994 WATCOM
International Corp., Copyright (c)
1987, 1994 WATCOM International Corp.,
Copyright (c) 1987, 1994 WATCOM
International Corp., Copyright (c)
1987, 1994 WATCOM International Corp.,
Copyright (c) 1987, 1994 WATCOM
International Corp., Copyright (c)
1987, BASEN j ‘
Ă™pGđČžrEđÇšmAę»b4Ô¨~PHŽ
j $ ¨ ýŰ ë HolBASENş
omain_name from SYS.SYSDOMAIN where
domain_id=SYSCOLUMN.domain_id),
nulls,width,scale,pkey,column_id,"default",
SYSCOLUMN.remarks from SYS.SYSCOLUMN
join SYS.SYSTABLE7€f
SYSCOLUMNSVIEW˙create view
SYS.SYSCOLUMNS(creator,cname,tname,coltype,nulls,length,
syslength,in_primary_key,colno,default_value,remarks)
as select(select user_name from
SYS.SYSUSERPERM where
user_id=SYSTABLE.creator),
column_name,table_name, (select d ·
NŃ €e SYSUSERPERMSVIEWŁcreate
view SYSUSERPERMS as select
user_id,user_name,resourceauth,dbaauth,
Thanks!
Filip

Any database created with any version of SQL Anywhere (or Watcom SQL) up to and including version 9 can be used with a version 9 SA server. If you have a version 10 or 11 server (version 12 is in beta right now), you need to unload it and reload it before the version 10/11 server can run it.
Note that SA version 9 will be end-of-life'd in (checks watch) 11 days.

As an alternative you can download older versions of sybase and try to connect to the given file.

Related

Why do I get this error while running the compiler?

I was able to install i386-elf-g ++ but there is an error running the command:
i386-elf-g ++: fatal error: cannot execute 'cc1plus': execvp: No such file or directory
But I looked at the gcc and g ++ versions:
g++ (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I have no idea what might be wrong.

Installed OS version not matching /proc/version

I installed Centos v7.2 While I do cat /proc/version I see this
Linux version 3.10.0-327.el7.x86_64 (builder#kbuilder.dev.centos.org) (gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC) ) #1 SMP Thu Nov 19 22:10:57 UTC 2015
Why is this Red Hat 4.8.3-9? Should it not be in versions of 7.x.x?
/proc/version specifies the version of the installed kernel ("3.10.0-327.el7.x86_64" in your case) and the version of gcc used to compile it ( "4.8.3 20140911 (Red Hat 4.8.3-9)").
The CentOS/RHEL version can be found in /etc/redhat-release.

Specify perl script to run on an earlier version of perl

I have some old production computer which has Perl 5.0 (updated version 1998).
I developed a script on my office computer with Activestate Perl 5.24.1
When i tried to run on the older version (installed on Windows XP) it drops several warnings, etc can not know about USE Warnings;, or three parameter open function.
The our keyword cannot be used with use strict;
our %Config = (
'SourcePath' => "",
'TargetPath' => "",
'Station' => "",
'Product' => "",
'LogLevel' => 0
);
When i tried to print a string with a hash variable in, it drops a warning too.
The code is:
print $fhw qq/ <FACTORY NAME="FLEX_ZALA" TESTER="$Config{'Station'}" FIXTURE="" USER="" LINE="" SHIFT="" \/>\n/;
The Station variable is not known for it.
I cannot develop on a production machine, but cannot install this old version on my office computer too.
How can i force to run my script with perl 5.24.1 in compatibily mode 5.0?
I using a windows 7 X64 PC for office.
Thanks.
UPD1:
The XP Perl version is:
Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001
Microsoft Corp.
C:\Documents and Settings\grprog1>perl -v
This is perl, version 5.003_07
Copyright 1987-1996, Larry Wall
+ suidperl security patch
Win32 port Copyright (c) 1995-1996 Microsoft Corporation.
All rights reserved.
Developed by ActiveWare Internet Corp., http://www.ActiveWare.com
Perl for Win32 Build 316 - Built 09:44:44 Mar 13 1998
Perl may be copied only under the terms of either the Artistic License
or the GNU General Public License, which may be found in the Perl 5.0
source kit.
UPD2:
C:\Documents and Settings\grprog1>perl -V Summary of my perl5 (patchlevel 1) configuration: Platform:
osname=MSWin32, osver=3.51, archname=i386-win32
uname=''
hint=recommended Compiler:
cc='cl', optimize=''
cppflags=''
ccflags =''
ldflags =''
stdchar='char', d_stdstdio=, usevfork=false
voidflags=15, castflags=0, d_casti32=, d_castneg=
intsize=4, alignbytes=4, usemymalloc=n, randbits=15 Libraries:
so=dll
libpth=
libs=
libc= Dynamic Linking:
dlsrc=dl_win32.xs, dlext=pll, d_dlsymun=
cccdlflags='', ccdlflags='', lddlflags=''
Characteristics of this binary (from libperl): Built under MSWin32 Compiled at Mar 13 1998 09:44:44 #INC:
C:\Teradyne\GRNavigate\228x\lib\perl
..\lib\i386-win32
..\lib
.
If I understand you correctly, you have Computer A which has perl 5.003_7. Therefore, copying that distribution from Computer A to Computer B where you want to do development is the most straightforward answer.
You say the testers also have this version of Perl. Therefore, your company must have bought either a site license or some specific number of licenses from ActiveState. You should investigate that first.
If you are stuck, contact ActiveState for support. They may provide you one for a fee.
Your company, however, faces the problem of having operations depend on ancient, no longer supported software to run programs which probably have problems of their own. It would be a good idea to move into this century.
If you absolutely must, no way around it, run ancient perl, your scripts cannot use more modern stuff.
Check out perlbrew to have more than one version of perl on your development/test box so you can test your code on several versions of perl with one command.
And perhaps also http://perldoc.perl.org/perl.html to see the docs of older perls.
It goes back only to 5.8.8 (~2005), but better than using docs for 5.24 in your situation.

SDL deployement on MacOS

I have developped an application using SDL2 installed through brew. It runs fine on my development environment but when trying to launch it on another machine I have the following error:
Drivers count: 2
Driver name: opengl
Driver name: software
Initialize all SDL subsystems
Set up the window
exists true
failed to load "/Users/joker/Desktop/SDLTest.app/Contents/MacOS/look.png"
Failed loading libpng.dylib: dlopen(libpng.dylib, 6): image not found
Here is my output when typing otool -L SDLTest.app/Contents/MacOS/SDLTest :
SDLTest.app/Contents/MacOS/SDLTest:
#executable_path/../Frameworks/libSDL2-2.0.0.dylib (compatibility version 3.0.0, current version 3.1.0)
#executable_path/../Frameworks/libSDL2_image-2.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
#executable_path/../Frameworks/libSDL2_ttf-2.0.0.dylib (compatibility version 11.0.0, current version 11.2.0)
#executable_path/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets (compatibility version 5.3.0, current version 5.3.1)
#executable_path/../Frameworks/QtGui.framework/Versions/5/QtGui (compatibility version 5.3.0, current version 5.3.1)
#executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore (compatibility version 5.3.0, current version 5.3.1)
/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/AGL.framework/Versions/A/AGL (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
Here is my output when typing otool -L SDLTest.app/Frameworks/libSDL2_image-2.0.0.dylib :
SDLTest.app/Contents/Frameworks/libSDL2_image-2.0.0.dylib:
#executable_path/../Frameworks/libSDL2_image-2.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
#executable_path/../Frameworks/libSDL2-2.0.0.dylib (compatibility version 3.0.0, current version 3.1.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
Here is the content of my SDLTest.app/Contents/Frameworks folder:
total 3064
drwxr-xr-x 14 martin staff 476B 27 oct 15:11 .
drwxr-xr-x 7 martin staff 238B 27 oct 15:11 ..
drwxr-xr-x 4 martin staff 136B 27 oct 15:11 QtCore.framework
drwxr-xr-x 4 martin staff 136B 27 oct 15:11 QtGui.framework
drwxr-xr-x 4 martin staff 136B 27 oct 15:11 QtPrintSupport.framework
drwxr-xr-x 4 martin staff 136B 27 oct 15:11 QtWidgets.framework
drwxr-xr-x 6 martin staff 204B 27 oct 15:11 SDL2.framework
drwxr-xr-x 7 martin staff 238B 27 oct 15:11 SDL2_image.framework
drwxr-xr-x 7 martin staff 238B 27 oct 15:11 SDL2_ttf.framework
-rw-r--r-- 1 martin staff 755K 27 oct 15:11 libSDL2-2.0.0.dylib
-rw-r--r-- 1 martin staff 78K 27 oct 15:11 libSDL2_image-2.0.0.dylib
-rw-r--r-- 1 martin staff 33K 27 oct 15:11 libSDL2_ttf-2.0.0.dylib
-rw-r--r-- 1 martin staff 491K 27 oct 15:11 libfreetype.6.dylib
-rw-r--r-- 1 martin staff 164K 27 oct 15:11 libpng16.16.dylib

How to setup Mingw32 with dwimperl

I installed dwimperl in windows and I want to use it with mingw32 command line.
In mingw32 there is perl version 5.8.x but i want to use perl 5.14 from mingw32. Any ideas how can i solve this problem?
Dwimperl has already included the mingw
C:\Users\jm> gcc --version
gcc (GCC) 4.4.7 20111023 (prerelease) [svn/rev.180339 - mingw-w64/oz]
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
C:\Users\jm> where gcc
C:\Dwimperl\c\bin\gcc.exe