Author Topic: ("C") trying to compile under ubuntu problem  (Read 2632 times)

0 Members and 1 Guest are viewing this topic.

Offline gh0st

  • Sir
  • ***
  • Posts: 575
  • Cookies: 8
  • #DEDSec
    • View Profile
("C") trying to compile under ubuntu problem
« on: September 10, 2011, 08:35:28 am »
well I do
Code: [Select]
gh0st@ubuntu:~$ $ gcc -o demo demo.c -pg
$: order not found

Im new on ubuntu I need some help here Im getting started onto ASM language to start my way to the 0 day exploit world  8)

Offline xzid

  • Knight
  • **
  • Posts: 329
  • Cookies: 41
    • View Profile
Re: ("C") trying to compile under ubuntu problem
« Reply #1 on: September 10, 2011, 08:38:17 am »
My guess is the $ at the start of bash command, btw... WTF are you running?

gh0st@ubuntu:~$ $ gcc -o demo demo.c -pg

to

gh0st@ubuntu:~$ gcc -o demo demo.c -pg


Offline gh0st

  • Sir
  • ***
  • Posts: 575
  • Cookies: 8
  • #DEDSec
    • View Profile
Re: ("C") trying to compile under ubuntu problem
« Reply #2 on: September 10, 2011, 08:41:23 am »
anywayz I will install a debuger as kdbg I suppose cause compiling programs in that way are not hard but are a bit confusing

Offline xzid

  • Knight
  • **
  • Posts: 329
  • Cookies: 41
    • View Profile
Re: ("C") trying to compile under ubuntu problem
« Reply #3 on: September 10, 2011, 08:43:18 am »
C + linux = gdb

Offline gh0st

  • Sir
  • ***
  • Posts: 575
  • Cookies: 8
  • #DEDSec
    • View Profile
Re: ("C") trying to compile under ubuntu problem
« Reply #4 on: September 10, 2011, 09:00:20 am »
look I do now to install kdbg
Code: [Select]
gh0st@ubuntu:~$ sudo apt-get install kdbg
[sudo] password for gh0st:
reading lists of packets... done
creating trees of dependencies       
reading the information of the states... done
E: the packet cannot be located
now whats wrong ?

Offline xzid

  • Knight
  • **
  • Posts: 329
  • Cookies: 41
    • View Profile
Re: ("C") trying to compile under ubuntu problem
« Reply #5 on: September 10, 2011, 09:04:23 am »
try: sudo apt-get update

also a debugger is not your problem, you need to learn C before you even understand a debuggers output.

Offline noob

  • Knight
  • **
  • Posts: 202
  • Cookies: 29
    • View Profile
Re: ("C") trying to compile under ubuntu problem
« Reply #6 on: September 10, 2011, 02:18:03 pm »
Install Codeblocks its more user firendly,i think you can find it in Ubuntu repository