I understand the Skype UI is written in Delphi, out of curiosity does anyone know what the versions fo OSX and Linux are written in? Sort of related: I got a messagebox pop up from Skype today "Assertion Failure (R:\Source\ui\skylib.pas, line 7708)" I wonder what went bang there? (It was after some Chinese company tried to send a spam text message to a whole bunch of Skype users including me - I hope they don't do that again)
John Bird email [EMAIL PROTECTED] Expert in Beyond Software Ph land (03)384-4527 mobile (027)484-4528 92 Soleares Ave, Mt Pleasant Christchurch Web http://jbclnz.googlepages.com <http://jbclnz.googlepages.com/> -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Bird Sent: Wednesday, 30 May 2007 12:03 p.m. To: 'NZ Borland Developers Group - Offtopic List' Subject: RE: [DUG-Offtopic] Linux executable A bit of background: Unix/linux does not rely on file extensions to identify the file type - it is done by looking at the file itself. (There is a "magic number" in the file header to find this in binary files). If you type the command file * it will print the filenames and what it thinks each type is. OSX is similar in this. Windows is sort of unique in having to rely on the filename to indicate the file type. For programs there are two further things to consider: 1 - a file cannot be executed unless its file permissions are set to execute, even if it is a valid program. This is the "x" permission seen when you do a ls -l If you see for instance (actual layout may vary) -rwxrw-r-- 1 fred group1 400000 11:45 project1 The permssions are read in groups of 3 letters, rwxrw-r-- means rwx rw- r-- for owner, group, world in that order. i.e write execute for the owner fred, read write for anyone in group1 and read only for everyone else. To set this, type chmod +x filename You have in general to be the owner of the file to change permissions on it, so check it has changed by another ls -l command! Some versions you may find it more reliable to use specific permission values, eg chmod 755 filename (this is rwxr-xr-x ie read/write/executable for owner, readable and executable by everyone else) To run the program just type its name (with correct case), eg project1 2 - Unix path is similar to the DOS path but usually the Unix path does NOT search the current folder for programs unless it is told to, so a program in the current folder may not be found when you run it. In this case you tell it to run the one in the folder by typing ./project1 or alter the path PATH=$PATH:. which wil take effect for the current shell or edit the setup file .profile or .bashrc to add this into the line to make it permanent... John -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brian Wrigley Sent: Tuesday, 29 May 2007 11:10 p.m. To: [EMAIL PROTECTED]; NZ Borland Developers Group - Offtopic List Subject: Re: [DUG-Offtopic] Linux executable Hi Jeremy, If it's executable, the command to run it is just the file name. You don't type "run filename" or "exec filename" or anything like that. It's normal for an executable file to have no extension. If the file is called, for example, "myprogram", then you type "myprogram" to run it. If it DOES happen to have an extension, that is part of the filename you have to type too, eg if the file is "myprogram.exe" you would type "myprogram.exe" to run it. Filenames are case-sensitive. If you type the command in the wrong case, it won't find it. The file will need to be executable by the user you are logged in as. In the ls -l listing you should see something like: "-r-xr-xr-x 1 myprogram" If it doesn't show the "x"s, you can make it executable with: "chmod +x myprogram" Hope this helps, Brian ----- Original Message ----- From: Jeremy Coulter <mailto:[EMAIL PROTECTED]> To: 'NZ Borland Developers Group - <mailto:offtopic@delphi.org.nz> Offtopic List' Sent: Tuesday, May 29, 2007 9:46 PM Subject: [DUG-Offtopic] Linux executable Hi All. I have got Fedora installed in a virtual PC, and have installed Lazarus as I am looking at writing a small app. for Linux. The app. is a "program" or a console app. in Delphi. The app. compiles ok and seems to run, although nothing happens much, but if I go to a terminal window and try to run the app, it tells me the file doesnt exit. i did a dir -l and I cna see my app (its th biggest file) and noticed it has no extension...and I think thats right, but I am clearly running the file the wrong way. I tried exec project1 (which is the name of the wee app) and that didnt work, I tried run Project1 but nothing worked. As you have prob. worked out, Linux is not my area of expertease :-) Can somepn point me in th righ direction here? Thanks, jeremy __________ NOD32 2245 (20070506) Information __________ This message was checked by NOD32 antivirus system. http://www.eset.com
_______________________________________________ NZ Borland Developers Group Offtopic mailing list Post: Offtopic@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/offtopic Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe