Results 1 to 5 of 5

Thread: Compiling Problems

  1. #1
    Join Date
    Jun 2011
    Beans
    7

    Compiling Problems

    I've recently installed Ubuntu 11.10 64-bit.

    I'M FACING SOME PROBLEMS....!!!....

    1.
    After installing Geany my *.cpp/*.c (which is in other drives ) are not running, but it's compiling.

    the terminal is showing
    "./geany_run_script.sh: 5: ./ ( name of program ) : Permission denied "

    but the program which is saved in home directory is running.

    but the .java files are running from any drive in geany.

    2.
    i could not make compile any .java file from Terminal
    by giving the command
    "javac *.java"

    how could i solve the problems.

    Give me some suggestions soon.
    PLZ

  2. #2
    Join Date
    Aug 2010
    Location
    Dhaka,Banladesh
    Beans
    141
    Distro
    Kubuntu 12.10 Quantal Quetzal

    Re: Compiling Problems

    For Java please check have you install sun-jdk,sun-jre correctly?
    For C do you have write permission on those drive?
    Love Open Source. Ubuntu Rocks.
    Computing in Native Language for Life time.
    FOSS Bangladesh.
    2048R/89C932E1

  3. #3
    Join Date
    Jun 2011
    Beans
    7

    Re: Compiling Problems

    how can i see whether i've permission for write or not in a drive?

  4. #4
    Join Date
    Aug 2010
    Location
    Dhaka,Banladesh
    Beans
    141
    Distro
    Kubuntu 12.10 Quantal Quetzal

    Re: Compiling Problems

    Quote Originally Posted by arif.cse28 View Post
    how can i see whether i've permission for write or not in a drive?
    Can you create a new file or folder on that drive?
    Love Open Source. Ubuntu Rocks.
    Computing in Native Language for Life time.
    FOSS Bangladesh.
    2048R/89C932E1

  5. #5
    Join Date
    Jul 2011
    Beans
    1

    Re: Compiling Problems

    1.Make sure your source code (*.cpp or *.c file) is in a directory where you have write permission.For example you can copy your file and paste it in home folder or desktop .

    Now open the file using geany.compile it.then build it.Now execute it.It will definitely run.

    2.Make sure you have jdk installed.To do so,run in the termin:
    javac
    If jdk is installed,it will show you instructions to compile source code.If not,it will show "The program 'javac' can be found in the following packages:"
    *some package names,etc

    If not installed,you can follow this installation guide:
    http://www.mkyong.com/java/how-to-in...-ubuntu-linux/

    Hope that helps.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •