Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-01-2005, 09:13 AM   #1
Registered: Oct 2005
Posts: 74

Rep: Reputation: 15
Further explanation on symlink

Hello, I looked at the manual for symlink which indicates the following:

SYMLINK(2) Linux Programmer's Manual SYMLINK(2)

symlink - make a new name for a file

#include <unistd.h>

int symlink(const char *oldpath, const char *newpath);

I attempted the following:
#include <unistd.h>
int symlink (/usr/bin/scilab,/home/jnistler/scilab/scilab-3.1.1/bin/scilab);

and recieved the error below

bash: syntax error near unexpected token `('

I tried removing the '(' and

nistler@linux:~/scilab/scilab-3.1.1/bin> int symlink /usr/bin/scilab,/home/jnistler/scilab/scilab-3.1.1/bin/scilab;
bash: int: command not found

I am using Suse 10.0 on a 64 bit Athlon and working with a program called Scilab. I am having trouble with tk windows that another person has verified he is not having. I want to set up the symlink to see if this corrects the problem.


Old 12-01-2005, 09:26 AM   #2
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,263

Rep: Reputation: 1689Reputation: 1689Reputation: 1689Reputation: 1689Reputation: 1689Reputation: 1689Reputation: 1689Reputation: 1689Reputation: 1689Reputation: 1689Reputation: 1689
From you post I understand you want create a symlink to run scilab from everywhere. To do this run (as root):
ln -s /home/jnistler/scilab/scilab-3.1.1/bin/scilab /bin/scilab

Last edited by bathory; 12-01-2005 at 09:28 AM.
Old 12-01-2005, 09:52 AM   #3
Registered: Aug 2005
Location: Oregon
Distribution: Kubuntu.
Posts: 848

Rep: Reputation: 30
The reference that you listed is from the programmers guide, and is a snippet of C code, not a shell command. What you need to do is make sure that your paths are correct for the tk packages, and that you have all of the dependancies loaded. Are you running from a download directly from their site? Suse uses rpms, so installing scilab from a properly created rpm should resolve most of the dependancy issues. Try downloading from I haven't found a package specific to Suse 10 64 bit edition (or any other 64 bit rpm based distro for that matter), but someone may have built one.
Old 12-01-2005, 10:14 AM   #4
Registered: Oct 2005
Posts: 74

Original Poster
Rep: Reputation: 15
I set up a mirror site in Europe which had an rpm setup and used YAST to install Scilab originally. What I do not know is if YAST looks at the version numbers associated with Scilab and upgrades now that I have it installed already. A colleague uses Debian on a 32 bit system and has no issue.

The link referring to Scilab-3.1.1 is a binary directly downloaded from the site. Thanks.

Old 12-01-2005, 10:52 AM   #5
Registered: Aug 2005
Location: Oregon
Distribution: Kubuntu.
Posts: 848

Rep: Reputation: 30
I looked at the SciLab site, and they do have the latest binary in a tar file. The real problem here is in dependencies. This is the one area that Linux needs to have a standardized packaging system (other than a tarball). I'm not sure how Debian resolves their dependancy issues.

What you could do is download the source tarball, extract it, and run (from the directory that it creates) "./conifgure". If it comes back ok, run "make", and "make install". That should at least let you know what libraries/dependancies it is missing.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Explanation of a phenomenon n3tw0rk Linux - Networking 1 11-10-2004 01:21 PM
explanation on typedef naren Programming 5 03-09-2004 10:48 PM
Kernel Explanation FatLinux Mandriva 4 02-18-2004 06:37 PM
Explanation or some links.. sh0cker Linux - General 2 02-12-2004 10:19 PM
I Could Use An Explanation winger Linux - General 3 04-13-2002 10:32 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:21 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration