LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 01-15-2004, 03:00 PM   #1
stupidclese
LQ Newbie
 
Registered: Aug 2003
Location: Kansas City
Distribution: college linux
Posts: 23

Rep: Reputation: 15
Java and C problems on DSL


I performed a Damn Small Linux hard disk installation on my old Pentium 2 recently only to find out that they left out all of the c libraries and java was not installed either. GCC is present but it doesn't even recognize the <stdio.h> library.
Since Java wasn't present I downloaded it off of sun's website and installed it, but I can't compile or run a program unless my current directory is /root/home/j2sdk/bin or whatever.
How do I change my settings so I can compile java at any time, and where can I get the C libraries I need.
 
Old 01-15-2004, 03:13 PM   #2
itsme86
Senior Member
 
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 59
You need to add /root/home/j2sdk/bin to your PATH. Check out /etc/profile.

The C library package is called glibc and can be obtained from gnu.org (ftp://ftp.gnu.org/gnu/glibc).

Last edited by itsme86; 01-15-2004 at 03:16 PM.
 
Old 01-15-2004, 03:25 PM   #3
stupidclese
LQ Newbie
 
Registered: Aug 2003
Location: Kansas City
Distribution: college linux
Posts: 23

Original Poster
Rep: Reputation: 15
only as root

How do I change the permission so I can run java and javac without being logging in as root? chmod?
 
Old 01-15-2004, 04:01 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Really, you should move java to
/usr
and then chmod the whole directory ...

And put something like
Code:
#!/bin/sh
# Add JDK1.3 specific settings
export JAVA_HOME=/usr/java
export PATH=$PATH:/usr/java/bin:/usr/java/jre/bin
into
/etc/profile.d/java.sh
and make it
chmod ugo+x,go-w /etc/profile.d/java.sh


As for the C-stuff ... did you try to
locate stdio\.h
or
find / -name stdio.h
? Maybe you're just missing the paths ...


Cheers,
Tink
 
Old 01-15-2004, 04:03 PM   #5
willand
Member
 
Registered: Dec 2003
Location: Paris, France
Distribution: Debian, Knoppix & Mandrake
Posts: 52

Rep: Reputation: 15
i don't know.. if it is so easy.. to change the permission of an executable of the /bin directory (for example).. and that an another user can uses applications..
because after the executable, there is so others programs, modules...
no ?

and if the others depedances doesn't have permissions... you can't lauch correctly the program even if you have the permissions on the main program...
 
Old 01-15-2004, 04:46 PM   #6
stupidclese
LQ Newbie
 
Registered: Aug 2003
Location: Kansas City
Distribution: college linux
Posts: 23

Original Poster
Rep: Reputation: 15
dont have gcc

I found out that I don't even have gcc at all, I have tcc which came with damn small linux. I need to download gcc so I can install open office and glibc. Does anybody know where I can aquire a copy of gcc?
 
Old 01-15-2004, 06:07 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
From what I gathered from the Damn Small
Linux homepage you should be able to get
the dpkg and then it should be a breeze to
apt-get it :)



Cheers,
Tink
 
Old 01-16-2004, 06:14 AM   #8
willand
Member
 
Registered: Dec 2003
Location: Paris, France
Distribution: Debian, Knoppix & Mandrake
Posts: 52

Rep: Reputation: 15
You can download gcc on : http://gcc.gnu.org/
 
Old 01-16-2004, 01:29 PM   #9
stupidclese
LQ Newbie
 
Registered: Aug 2003
Location: Kansas City
Distribution: college linux
Posts: 23

Original Poster
Rep: Reputation: 15
additional problems

I tried to install gcc, and the instructions told me to run the configure command and when I did it only did half of its job. It created "MakeFile" in /home/root/gccBuild using "mt-frag" but for the rest it keeps trying to use my old tcc comiler (which I'm trying to replace with gcc as we speak because tcc blows). It then continues to print "*** You must set the environment variable CC to a working comiler." What I don't understand is how does this installation even work at all if you don't have a compiler to begin with? Is there some text file that sets "cc" as a command exclusively associated with tcc that I have to change before the configuration process with complete?
 
Old 01-17-2004, 12:50 PM   #10
stupidclese
LQ Newbie
 
Registered: Aug 2003
Location: Kansas City
Distribution: college linux
Posts: 23

Original Poster
Rep: Reputation: 15
help me

Hey, somebody help me, I need my computer working and I don't know how to fix it. See above post.
 
  


Reply


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
Problems with Java Web Start (java 1.4.2 - 1.5.0) on Slackware Egy Slackware 11 05-10-2005 07:30 AM
Problems getting DSL on Linux dullard Slackware 2 04-04-2005 04:08 AM
Problems with DSL connection Kensai Linux - Networking 11 08-23-2004 08:03 AM
JAVA:(jwstric2) Problems in JAVA-LINUX nedian123 Programming 1 06-28-2004 05:12 PM
DSL problems gnuElement Linux - Networking 0 02-11-2003 11:47 PM


All times are GMT -5. The time now is 02:15 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration