LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-10-2004, 06:59 AM   #16
vanhelsing
Member
 
Registered: May 2004
Posts: 130

Original Poster
Rep: Reputation: 15

I already download installed disc, so Which package must I install that include Tex or LaTex?

I list package that Redhat 9 provide for me------>

1. Editors
2. Engineering and Scientific
3. Graphical internet
4. Text -base internet
5. Office/Productivity
6. Sound and video
7. Authoring and Publishing
8. Development Tools
9. Kernel Development
10. X Software Development
11. Gnome Software Development
12. KDE Software Development
13. Administration Tool
14. System Tool

I found "Tetex -xdvi An X-viewer for DVI file" in the "Office/Productivit" package.
Must I install "Tetex -xdvi An X-viewer for DVI file" ?
 
Old 07-10-2004, 07:31 AM   #17
vasudevadas
Member
 
Registered: Jul 2003
Location: Bedford, UK
Distribution: Slackware 11.0, LFS 6.1
Posts: 519

Rep: Reputation: 30
Could well be in "authoring and publishing" but you shouldn't need to ask us that. Choose the option and see what choices you are presented with!
 
Old 07-10-2004, 07:32 AM   #18
vanhelsing
Member
 
Registered: May 2004
Posts: 130

Original Poster
Rep: Reputation: 15
[root@localhost cdrom]# find /mnt/cdrom -name "latex*rpm"
[root@localhost cdrom]#

I find in all my distrib cds but I can't find it
 
Old 07-10-2004, 12:48 PM   #19
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Frankly, as I use slackware, I don't know the latex package name for redhat, you can get more answer from the redhat forum, I think.
 
Old 07-10-2004, 04:38 PM   #20
vanhelsing
Member
 
Registered: May 2004
Posts: 130

Original Poster
Rep: Reputation: 15
Thanks everybody,I appreciate for yr reply,I can install Tex now.
 
Old 07-10-2004, 06:29 PM   #21
vanhelsing
Member
 
Registered: May 2004
Posts: 130

Original Poster
Rep: Reputation: 15
my further problem!!!, after that I install " jvoiplib-1.2.0" library. I'm not sure that I can install compleatly. so I test my first program. This is all my work and my problem----->

[root@localhost jvoiplib-1.2.0]# ls
ChangeLog copyheaderfiles.bat jvoiplib.dsw Makefile vtest.cpp
config.log doc lib Makefile.in
config.status examples libjvoip.a README.TXT
configure include libjvoip.so.1.2.0 src
configure.in jvoiplib.dsp LICENSE.LGPL testutil
[root@localhost jvoiplib-1.2.0]# cat vtest.cpp
#include "jvoipsession.h"
#include <stdio.h>
\par int main(void)
{
JVOIPSession session;
JVOIPSessionParams params;
\par session.Create(params);
fgetc(stdin);
session.Destroy();
\par return 0;
}
[root@localhost jvoiplib-1.2.0]# g++ vtest.cpp -o vtest
vtest.cpp:1:26: jvoipsession.h: No such file or directory
vtest.cpp:3: stray '\' in program
vtest.cpp:3: syntax error before `int'
vtest.cpp:6: 'JVOIPSessionParams' is used as a type, but is not defined as a
type.
vtest.cpp:7: stray '\' in program
vtest.cpp:7: parse error before `.' token
vtest.cpp:8: ISO C++ forbids declaration of `fgetc' with no type
vtest.cpp:8: `int fgetc' redeclared as different kind of symbol
/usr/include/stdio.h:383: previous declaration of `int fgetc(FILE*)'
vtest.cpp:8: invalid conversion from `_IO_FILE*' to `int'
vtest.cpp:9: syntax error before `.' token
vtest.cpp:10: stray '\' in program
vtest.cpp:10: syntax error before `return'
[root@localhost jvoiplib-1.2.0]#

That mean I can't install library compleately??
 
Old 07-10-2004, 06:33 PM   #22
vanhelsing
Member
 
Registered: May 2004
Posts: 130

Original Poster
Rep: Reputation: 15
This is my another test!! ------>

[root@localhost jvoiplib-1.2.0]# ls
ChangeLog copyheaderfiles.bat jvoiplib.dsw Makefile vtest.cpp
config.log doc lib Makefile.in
config.status examples libjvoip.a README.TXT
configure include libjvoip.so.1.2.0 src
configure.in jvoiplib.dsp LICENSE.LGPL testutil
[root@localhost jvoiplib-1.2.0]# cd examples
[root@localhost examples]# ls
changerate.cpp ex3d.cpp localsimple.cpp
[root@localhost examples]# cat changerate.cpp|more
#include "jvoipsession.h"
#include "jvoiprtptransmission.h"
#include <stdlib.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <time.h>

void check(int s)
{
if (s >= 0)
return;
printf("Error %d\n",s);
exit(-1);
}

int main(int argc,char *argv[])
{
JVOIPSession sess;
JVOIPSessionParams params;
JVOIPRTPTransmissionParams rtpparams;
time_t prevtime,curtime;
char dst[1024];
int i,ratenum;
bool done = false;
int rates[]={4000,8000,11025,22050,44100};

printf("Enter destination IP:\n");
scanf("%s",dst);
rtpparams.SetAcceptOwnPackets(true);
params.SetTransmissionParams(&rtpparams);
params.SetOutputSamplingRate(44100);
params.SetInputSampleEncodingType(JVOIPSessionParams::SixteenBit);
params.SetOutputSampleEncodingType(JVOIPSessionParams::SixteenBit);
// params.SetCompressionType(JVOIPSessionParams:PCM);
check(sess.Create(params));
check(sess.AddDestination(ntohl(inet_addr(dst)),5000));

ratenum = 1;
params.SetInputSamplingRate(rates[ratenum]);
while(!done)
{
int c;

c = fgetc(stdin);
if (c == '+' && ratenum < 4)
{
ratenum++;
printf("Setting rate to %d\n",rates[ratenum]);
sess.SetInputSamplingRate(rates[ratenum]);
}
else if (c == '-' && ratenum > 0)
{
ratenum--;
printf("Setting rate to %d\n",rates[ratenum]);
sess.SetInputSamplingRate(rates[ratenum]);
}
else if (c == 'q')
done = true;
}

// IMPORTANT: The Destroy function MUST be called! Refer to the manual f
or more info...
check(sess.Destroy());

printf("Session destroyed...\n");
return 0;
}
[root@localhost examples]# ls
changerate.cpp ex3d.cpp localsimple.cpp
[root@localhost examples]# g++ changerate.cpp -o test
changerate.cpp:1:26: jvoipsession.h: No such file or directory
changerate.cpp:2:34: jvoiprtptransmission.h: No such file or directory
changerate.cpp: In function `void check(int)':
changerate.cpp:12: `printf' undeclared (first use this function)
changerate.cpp:12: (Each undeclared identifier is reported only once for each
function it appears in.)
changerate.cpp: In function `int main(int, char**)':
changerate.cpp:18: `JVOIPSession' undeclared (first use this function)
changerate.cpp:18: parse error before `;' token
changerate.cpp:19: `JVOIPSessionParams' undeclared (first use this function)
changerate.cpp:20: `JVOIPRTPTransmissionParams' undeclared (first use this
function)
changerate.cpp:28: `scanf' undeclared (first use this function)
changerate.cpp:29: `rtpparams' undeclared (first use this function)
changerate.cpp:30: `params' undeclared (first use this function)
changerate.cpp:32: parse error before `::' token
changerate.cpp:33: parse error before `::' token
changerate.cpp:35: `sess' undeclared (first use this function)
changerate.cpp:44: `stdin' undeclared (first use this function)
changerate.cpp:44: `fgetc' undeclared (first use this function)
[root@localhost examples]#

That mean I can't install library compleately??
 
Old 07-10-2004, 06:50 PM   #23
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Do you have the jvoipsession.h header file in the same code as your source file? Your include statement assumes so. Also, to make sure you can use the library file you installed you may want to run the 'ldconfig' command as root in case the install program didn't do it.

About the latex package, look for a package beginning with tetex-latex and tetex-xdvi.
There is also a kdvi viewer for dvi files which I prefer.

I you will be planning to write your own latex documents, consider installing 'kile'.
 
Old 07-10-2004, 07:31 PM   #24
vanhelsing
Member
 
Registered: May 2004
Posts: 130

Original Poster
Rep: Reputation: 15
Hi, jschiwal
Thanks for yr reply

Could u explain more that u said "Do you have the jvoipsession.h header file in the same code as your source file?". How to do that?. I'm very newbie about c++.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install .o files into library ieydis Linux - Software 1 11-23-2005 10:38 PM
Install GD Library for PHP4? Truti Linux - Software 0 04-12-2005 03:34 PM
jpeg library install.. eye Red Hat 1 10-15-2003 07:59 PM
gd library install. eye Linux - Software 0 10-15-2003 11:11 AM
I can't install this library carlcromer Linux - Newbie 2 07-01-2002 11:03 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:27 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