LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-18-2004, 12:20 AM   #1
Gerardoj
Member
 
Registered: May 2003
Location: Somewhere over the Rainbow
Distribution: Slackware 9.x, Knoppix, Damn Small Linux, RedHat.
Posts: 465

Rep: Reputation: 30
Installing Package Trouble


Im trying to install a package. Here's the way Idid it on my system:

cd ~
tar -xzvf TurboC-dev.tar.gz
cd TurboC-source
make
su
ln -s *.h /usr/include
ln -s TurboC.a /usr/lib
exit


and then I tried to compile the source code:

root@r0ot:/home/user/TurboC-source/Programs# g++ -o Test Test.cpp -lTurboC -lncurses
/usr/lib/gcc-lib/i486-slackware-linux/3.2.3/../../../../i486-slackware-linux/bin/ld: cannot find -lTurboC
collect2: ld returned 1 exit status


Also I typed:

root@r0ot:/home/user/TurboC-source/Programs# whereis TurboC
TurboC: /usr/lib/TurboC.a /usr/include/TurboC.h


What Could be the problem?

Thanks a lot.
 
Old 05-18-2004, 06:46 AM   #2
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Which distro of the many listed is this for?
Were the steps you did found in the README or INSTALL file and are the the paths/versions correct for your system?
Was the step ./configure mentioned in either of the above files?

# Guides to software management
LNAG - How do I install a program I downloaded from the Internet?
Rute Guide's software explanation
You might want to check out CheckInstall to manage source code installations/uninstallation
 
Old 05-18-2004, 10:18 AM   #3
Gerardoj
Member
 
Registered: May 2003
Location: Somewhere over the Rainbow
Distribution: Slackware 9.x, Knoppix, Damn Small Linux, RedHat.
Posts: 465

Original Poster
Rep: Reputation: 30
Yeah About Distro is Slackware 9.1, About the README file, that the steps that said, and about ./configure.. There are not Configure file..

http://www.sandroid.org/TurboC/index.html#Download

what Im doing wrong?

Thanks again..
 
Old 05-18-2004, 11:01 AM   #4
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Quote:
Also, the Makefile makes certain assumptions about the locations of the X-window system header files and libraries; if these assumptions are wrong, you may need to alter the compiler switches "-L" and/or "-I" within the makefile. The X-window system is needed to compile the complete library, or to run a ported program, if you use any functions from graphics.h. If you don't intend to use these functions, you can use ported programs or compile the library on a system without X, by editing the Makefile and removing the compiler switch "-DWITH_X".
Do you have the X header files and libraries installed and does the aformentioned makefile agree with their locations?

I think the previously posted checkinstall link is for Slackware and that may help with your dependencies if you are missing them.

Last edited by fancypiper; 05-18-2004 at 11:02 AM.
 
Old 05-18-2004, 11:50 AM   #5
Gerardoj
Member
 
Registered: May 2003
Location: Somewhere over the Rainbow
Distribution: Slackware 9.x, Knoppix, Damn Small Linux, RedHat.
Posts: 465

Original Poster
Rep: Reputation: 30
What do you mean with the X header files and libraries installed with MakeFile locations? How can I know..?

Do you think I need to reinstall it?
 
Old 05-18-2004, 11:03 PM   #6
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
I mean you need all the stuff installed on your system in order to compile stuff that is being built for usage in X (your gui). As far as "Do you think I need to reinstall it?" is concerned, I have no idea of what the "it" is and I am not being Clintonesque with that answer.

Commands to use to find out stuff in Linux
# Bash shell commands
Command Reference NHF
O'Reilly Directory of Linux Commands
# Handy bash commands I might use or ask a newbie to use:
# Find CPU specifications
cat /proc/cpuinfo
# Find running kernel version
uname -r
# What compiler version do I have installed
gcc -v
gcc --version
# What is the running kernel and compiler installed
cat /proc/version
# Find X server version
X -showconfig
# What pci cards are installed and what irq/port is used
cat /proc/pci
# What kernel modules are loaded
lsmod
# Memory and swap information
cat /proc/meminfo
free
An article: Tips for Optimizing Linux Memory
# How are the hard drives partitioned
fdisk -l
# How much free/used drive space
df -h
# Show disk usage by current directory and all subdirectories
du | less
# What takes up so much space on your box
# Run from the directory in question and the largest chunk shows up last
find $1 -type d | xargs du -sm | sort -g
# What is the distribution
cat /etc/.product
cat /etc/.issue
cat /etc/issue
cat /etc/issue.net
sysinfo
# For finding or locating files
find
locate
which
whereis
# Use dmesg to view the kernel ring buffer (error messages)
dmesg | less
# Watch error messages as they happen (sysklog needed)
as root, tail -f /var/log/messages (shows last 10 lines, use a number in front of f for more lines)
# What processes are running
ps -A
# Find a process by name
ps -ef | grep -i <plain text>
For example, XCDroast
ps -ef xcdroast
# See current environment list, or pipe to file
env | more
env > environmentvariablelist.txt
# Show current userid and assigned groups
id
# See all command aliases for the current user
alias
# What directory am I using
pwd
# Get ls colors in less
ls --color=always | less -R
Look at man <command> or info <command> for the flags I used and for other options you can use for bash commands.

I have no idea if you installed them or not. You are in front of your computer and mashed the buttons to do the install, so I would have to know what you installed. There are automatic selections (possibly) during installs of most distros (I haven't used Debian yet), so if you selected that, you probably didn't install it.

Debian uses apt-get to control packages and the gui front end is synaptic. Configure apt-get so that it knows about internet sources (it probably only knows what CDs you have), then do
apt-get update
apt-get dist-upgrade
When this finishes, what you have installed will be updated.
Try an apt-get install

# Debian links
Installing Debian GNU/Linux 3.0 For Intel x86
The Very Verbose Debian 3.0 Installation Walkthrough
APT HOWTO
Debian Package Management HOWTO Version 1.1

After seeing you are attempting to install a DOS compiler, I was wondering why if you are going to run Debian, you have a perfectly good GCC.
 
Old 05-18-2004, 11:06 PM   #7
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
You sound as if you may need info on the Linux filestructure, so hear are some links for that as well.

# Understanding Linux Filesystem layout:
Directory Navigation Help File
Filesystems, Directories, and Devices Help File
Proper Filesystem Layout
Advanced filesystem implementor's guide (requires registration)
 
Old 05-19-2004, 12:56 PM   #8
Gerardoj
Member
 
Registered: May 2003
Location: Somewhere over the Rainbow
Distribution: Slackware 9.x, Knoppix, Damn Small Linux, RedHat.
Posts: 465

Original Poster
Rep: Reputation: 30
Thanks a lot. Now is working fine.. In order to get it to compile, I had to use the following:

gcc -o Fact Fact.c -L/home/user/TurboC -lTurboC -lncurses -L/usr/X11R6/lib
-lX11 -lpthread


Thanks again..
 
Old 05-19-2004, 01:26 PM   #9
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Yay! Another Slackware distribution (of which I know little or nothing) help with something I know absolutely nothing about.

I am still wondering (nosey might be a better term). You just installed a DOS compiler and I was wondering why? If you are going to run Debian or any other Linux, you have a perfectly good GCC available.
 
Old 05-19-2004, 01:35 PM   #10
Gerardoj
Member
 
Registered: May 2003
Location: Somewhere over the Rainbow
Distribution: Slackware 9.x, Knoppix, Damn Small Linux, RedHat.
Posts: 465

Original Poster
Rep: Reputation: 30
Yeah I installed a DOS compiler cause a long time ago I coded a Large Sales Program, and recently I needed a project similar working on Linux, and I thought ok I will try to port GCC code.. That was the reason. But Dont worry Im currently coding on GCC.. No more M$ Windows compilers..
 
Old 05-19-2004, 01:45 PM   #11
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
I have often wonderd how the GNU stuff was ported to Windows. So you are attempting the reverse? Porting to Linux?

Let us know how it goes.
 
Old 05-19-2004, 02:34 PM   #12
Gerardoj
Member
 
Registered: May 2003
Location: Somewhere over the Rainbow
Distribution: Slackware 9.x, Knoppix, Damn Small Linux, RedHat.
Posts: 465

Original Poster
Rep: Reputation: 30
What do you mean with 'GNU stuff was ported to Windows'?
 
Old 05-19-2004, 03:10 PM   #13
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Stuff like I got on this CD: GNUWin II
 
Old 05-19-2004, 03:44 PM   #14
Gerardoj
Member
 
Registered: May 2003
Location: Somewhere over the Rainbow
Distribution: Slackware 9.x, Knoppix, Damn Small Linux, RedHat.
Posts: 465

Original Poster
Rep: Reputation: 30
Nop nothing like GNUWin II . I just wanted to compile it cause I needed to test for a personal project .. Dont worry now Im coding my project 100% on GCC.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
help installing a package johnty01 Linux - Software 1 08-29-2005 11:50 PM
installing package from CD alexlambdax Linux - Newbie 1 06-22-2004 08:37 PM
installing this package AZDAVE Linux - Software 1 02-11-2004 04:48 PM
Trouble of Installing new package, application and memory in RH9 lhksys Linux - Software 0 11-26-2003 01:30 AM
installing an unstable package from debian's online package archive ganninu Debian 13 11-07-2003 03:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:14 AM.

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