Resend my activation email : Register : Log in 
BCF: Bike Chat Forums


linux help stupid questions

Reply to topic
Bike Chat Forums Index -> General Bike Chat
View previous topic : View next topic  
Author Message

Evilbob
Crazy Courier



Joined: 26 Nov 2002
Karma :

PostPosted: 17:47 - 08 Oct 2003    Post subject: linux help stupid questions Reply with quote

k just installed and trying to program but well have no clue what i am doing Embarassed

Q1) when i in shell i type c++ (gcc) and it dont do anything as i ashume that i havent got the programming bits installed and it keeps holding cd's hostage???

Q2) in emacs i type in code and try to compile but it says nothing to be done for my file to be done??

arrrrrrrrrrrrrrrrrrrrrrrrrrr this is sooooo going well please help me.
____________________
============================
my karma is dieing not fair who cares about spelling? i get the point across, most of the time Smile


Last edited by Evilbob on 18:04 - 08 Oct 2003; edited 1 time in total
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

Evilbob
Crazy Courier



Joined: 26 Nov 2002
Karma :

PostPosted: 17:47 - 08 Oct 2003    Post subject: also Reply with quote

what the hell is the make directory command as well????
____________________
============================
my karma is dieing not fair who cares about spelling? i get the point across, most of the time Smile
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

MarJay
But it's British!



Joined: 15 Sep 2003
Karma :

PostPosted: 18:25 - 08 Oct 2003    Post subject: Reply with quote

mkdir to create a directory.
Don't forget to run a command in the current directory, it needs to be precceded by ./
I do think you're putting the cart before the horse somewhat though.
Also instead of emacs try pico.
Utils like pico emacs vi etc don't need the ./ but other executables do.
____________________
British beauty: Triumph Street Triple R; Loony stroker: KR1S; Track fun: GSXR750 L1; Commuter Missile: GSX-S1000F; Cheap project: CBR900RR FireBlade
Remember kids, bikes aren't like lego. You can't easily take a part from one bike and then fit it to another.
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

Evilbob
Crazy Courier



Joined: 26 Nov 2002
Karma :

PostPosted: 20:57 - 08 Oct 2003    Post subject: linux Reply with quote

going all good but while i play i want to have mp3s playing.
any way so i only seem to get uncompiled stuff like *.tar.tz
anyway so un zip em
make em
make install
and then what the fuck happens i realise they go to /user/local/bin
but cant seem to do anything with em?!?!?! tryed asssiating it with files
making an icon and adding the prefixes
i just wanted a windo to pop up that would play my mp3s of a cd, the naff stuff with linux (red hat8) dont seem to work.

cheers
client program almost done (dancing)
____________________
============================
my karma is dieing not fair who cares about spelling? i get the point across, most of the time Smile
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

EuropeanNC30R...
Gay Hairdresser



Joined: 20 Jun 2002
Karma :

PostPosted: 22:30 - 08 Oct 2003    Post subject: Reply with quote

I had Red Hat 8 for while, it wouldn't play mp3's for me either. It said somewhere on the website it was a legal thing. There was instructions on how to sort it but they were beyond my ability at the time.

A makefile is a file that when you call it(using 'make' from the terminal in the makefile's directory), compiles all your code modules/functions at once so that they're linked together and can share code.(I think - haven't done anything with them for months and my memory's a bit sketchy Smile)
 Back to top
View user's profile Send private message You must be logged in to rate posts

Evilbob
Crazy Courier



Joined: 26 Nov 2002
Karma :

PostPosted: 22:32 - 08 Oct 2003    Post subject: arrrr Reply with quote

sodding language any one help

/* sending to port 7890 */
#include <iostream.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <sys/time.h>
#include <time.h>

unsigned long host_toaddr(char *who)
{
struct hostent *hostdata;

unsigned long *hostaddresspointer;

if ((hostdata = gethostbyname(who)) == NULL)
{
perror("Bad hostname lookup");
exit (11);
}
hostaddresspointer = (unsigned long *)(hostdata -> h_addr);
return *hostaddresspointer;
}


int main(int argc, char **argv)
{
setbuf(stdout, NULL);
int rxsock;
int txsock;
struct sockaddr_in listen_socket;
struct sockaddr_in dest_socket;
char packet_buffer[200];


if ((txsock = socket (AF_INET, SOCK_DGRAM, 0)) < 0)
{perror ("cant open tx socket");
exit (1);
}
if ((rxsock = socket (AF_INET, SOCK_DGRAM, 0)) < 0)
{perror ("cant open rx socket");
exit (2);
}

unsigned long host = host_toaddr(argv[1]);

dest_socket.sin_family = AF_INET;
dest_socket.sin_addr.s_addr = host;
dest_socket.sin_port = 7890;


/* if (sendto (txsock, packet_buffer, 40, 0, &dest_socket, sizeof(dest_socket)) < 0)
{
perror ("cant send");
exit (5);
} */


}


Error is cannot convert `sockaddr_in*' to `const sockaddr*' for &dest_socket
GRGRGRGRGRGRG i getting a headack now
____________________
============================
my karma is dieing not fair who cares about spelling? i get the point across, most of the time Smile
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

EuropeanNC30R...
Gay Hairdresser



Joined: 20 Jun 2002
Karma :

PostPosted: 22:35 - 08 Oct 2003    Post subject: Reply with quote

Oh yeah I had the exact same problem as you when trying to compile C source files, GCC would detect any syntax errors with my code but then spit its dummy out when it came to compiling, just like it was half-installed. I tried for a while to get it working then gave up and switched to SuSE linux(where it worked fine).
 Back to top
View user's profile Send private message You must be logged in to rate posts

Evilbob
Crazy Courier



Joined: 26 Nov 2002
Karma :

PostPosted: 23:08 - 08 Oct 2003    Post subject: code Reply with quote

arrr nackers, might take it into uni and try there then Sad
thanks
____________________
============================
my karma is dieing not fair who cares about spelling? i get the point across, most of the time Smile
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts
Old Thread Alert!

The last post was made 22 years, 181 days ago. Instead of replying here, would creating a new thread be more useful?
  Display posts from previous:   
This page may contain affiliate links, which means we may earn a small commission if a visitor clicks through and makes a purchase. By clicking on an affiliate link, you accept that third-party cookies will be set.

Post new topic   Reply to topic    Bike Chat Forums Index -> General Bike Chat All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Read the Terms of Use! - Powered by phpBB © phpBB Group
 

Debug Mode: ON - Server: birks (www) - Page Generation Time: 0.08 Sec - Server Load: 1.88 - MySQL Queries: 14 - Page Size: 58.19 Kb