Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Running a Unix app

Posted on 1998-03-15
4
Medium Priority
?
257 Views
Last Modified: 2010-04-21
Hi,
   I need to run a Unix application which I've downloaded from the web. It's a program called Lyx, a graphical editor for LateX documents. I've downloaded a file called LYX-CURR.GZ, and have unzipped it with GZIP. This gives me the file LYX-CURR. Does anyone know how I'd run this? If I just type the name LYX-CURR in, it says access denied. What should I do?
Thanks in advance, Nik
(PS) I know very little about Unix, so please try and be as simple as possible!
0
Comment
Question by:NikWhit
4 Comments
 
LVL 4

Expert Comment

by:d003303
ID: 2009007
- UNIX is case sensitive, so LYX-CURR and lyx-curr are two different files
- UNIX consoles have two different '-' keys. One at the keypad, one at the keyboard.
- try to run it with ./(filename) because maybe your administrator denied the working directory as an executable path
- look at the file permissions with ls -l.

0
 
LVL 6

Expert Comment

by:gadio
ID: 2009008
 NikWhit, there are several things that you have to check before trying to run this application. The first thing about programs that you take of the net is their format. I take it from what you write that this file what in binary executable format (it is very common to find source file versions on the net, and then you need to open them AND compile them - it is easier for the distributors to give a version for many machine architectures this way). You also need to make sure that this file was compiled for your machine type. If all these are correct, what you need to do is what you did (that is download, open) and then you need to make sure that it has running permissions. Use:
chmod +x ./LYX-CURR
Then you should be able to run it using:
./LYX-CURR
As mentioned above, take care for the case as unix is case sensitive.

Regards, G
0
 
LVL 1

Author Comment

by:NikWhit
ID: 2009009
Hi, guys.
    I've made it executable, now, but when I run it, it says says : 'syntax error : newline or ; expected line 2. Does this mean that the file is corrupt or something?

0
 
LVL 32

Accepted Solution

by:
jhance earned 0 total points
ID: 2009010
My guess is that it's a TAR file.  Try this:

tar tvf LYX-CURR

If you get file names, then you should extract the archive:

tar xvf LYX-CURR


0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses
Course of the Month12 days, 1 hour left to enroll

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question