Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: file not recognized, file format not recognized, installation, svmlight

  1. #1
    Join Date
    Jan 2010
    Beans
    39
    Distro
    Ubuntu 9.10 Karmic Koala

    Unhappy file not recognized, file format not recognized, installation, svmlight

    Hello Uber's,

    Can anyone help with the error "file not recognized: file format not recognized".

    Background:
    Installated Ubuntu 9.10 in the last two days.
    Installed GNU GCC and have run .c and .cpp via gcc and g++ respectively.

    Current scenario:
    Downloaded svmlight.tar.gz, and extracted it in /svm_light.
    Then issued "make" and the executables were made.
    Downloaded example1.tar.gz into /svm_light/example1, then extracted (as instructed at SVMLight Homepage)


    svm_learn is called with the following parameters:
    svm_learn [options] example_file model_file //svm_learn.c exists
    // and so does svm_learn_main.c


    So I tried running the example1 as instructed:

    svm_learn example1/train.dat example1/model

    this generates errors: svm_learn: command not found.

    when I try gcc -o smv_learn example1/train.dat

    the error is: example1/train.dat: file not recognized: file format not recognized.

    How can I 1) have the .dat files recognized, and
    2) how can I get the svm_learn to compile (the executable is there)

    Thanks for everyone's help.

  2. #2
    Join Date
    Jan 2010
    Beans
    39
    Distro
    Ubuntu 9.10 Karmic Koala

    Red face file not recognized; format not recognized

    Hello Uber's,

    Can anyone help with the error "file not recognized: file format not recognized".

    Background:
    Installated Ubuntu 9.10 in the last two days.
    Installed GNU GCC and have run .c and .cpp via gcc and g++ respectively.

    Current scenario:
    Downloaded svmlight.tar.gz, and extracted it in /svm_light.
    Then issued "make" and the executables were made.
    Downloaded example1.tar.gz into /svm_light/example1, then extracted (as instructed at SVMLight Homepage)


    svm_learn is called with the following parameters:
    svm_learn [options] example_file model_file //svm_learn.c exists
    // and so does svm_learn_main.c


    So I tried running the example1 as instructed:

    svm_learn example1/train.dat example1/model

    this generates errors: svm_learn: command not found.

    when I try gcc -o smv_learn example1/train.dat

    the error is: example1/train.dat: file not recognized: file format not recognized.

    How can I 1) have the .dat files recognized, and
    2) how can I get the svm_learn to compile (the executable is there)

    Thanks for everyone's help.

  3. #3
    Join Date
    Jan 2010
    Beans
    39
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: file not recognized, file format not recognized, installation, svmlight

    just came across a old cgwin forum Q&A of the same problem - http://cygwin.com/ml/cygwin/2004-06/msg00285.html

    the advice "try doing "gcc -v test.c" instead, and cut and paste the output intoa reply...

    which is here:

    alex@UbuntuPC:~/tmp/svm_light$ gcc - v test.c
    gcc: v: No such file or directory
    gcc: test.c: No such file or directory
    gcc: -E or -x required when input is from standard input

  4. #4
    Join Date
    Jan 2010
    Beans
    39
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: file not recognized; format not recognized

    just came across a old cgwin forum Q&A of the same problem - http://cygwin.com/ml/cygwin/2004-06/msg00285.html

    the advice "try doing "gcc -v test.c" instead, and cut and paste the output intoa reply...

    which is here:

    alex@UbuntuPC:~/tmp/svm_light$ gcc - v test.c
    gcc: v: No such file or directory
    gcc: test.c: No such file or directory
    gcc: -E or -x required when input is from standard input

  5. #5
    Join Date
    Jan 2010
    Beans
    39
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: file not recognized; format not recognized

    alex@UbuntuPC:~/tmp/svm_light$ gcc - v svm_learn.c
    gcc: v: No such file or directory
    gcc: -E or -x required when input is from standard input
    alex@UbuntuPC:~/tmp/svm_light$ gcc - v svm_learn
    gcc: v: No such file or directory
    gcc: svm_learn: No such file or directory
    gcc: -E or -x required when input is from standard input

  6. #6
    Join Date
    Jan 2010
    Beans
    39
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: file not recognized, file format not recognized, installation, svmlight

    alex@UbuntuPC:~/tmp/svm_light$ gcc - v svm_learn.c
    gcc: v: No such file or directory
    gcc: -E or -x required when input is from standard input
    alex@UbuntuPC:~/tmp/svm_light$ gcc - v svm_learn
    gcc: v: No such file or directory
    gcc: svm_learn: No such file or directory
    gcc: -E or -x required when input is from standard input

  7. #7
    Join Date
    Jan 2010
    Beans
    39
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: file not recognized, file format not recognized, installation, svmlight

    I am beginning to understand the following as deduced from the commands and subsequent errors below:
    If I add .c to the svm_learn filename, the file is found.
    If I remove the objectfile, the linker error 'ERROR collect 2: ld returned .... " results from the missing object file and inhibiting or preventing the linker making a link between example1/train.dat and example1/model.

    Now the model file is supposed to be generated by the compilation of svm_learn...
    so this suggests the svm_learn.c is not compiling. ...is that correct, what is stopping this ?


    alex@UbuntuPC:~/tmp/svm_light$ gcc svm_learn example1/train.dat example/model
    gcc: svm_learn: No such file or directory
    gcc: example/model: No such file or directory

    alex@UbuntuPC:~/tmp/svm_light$ gcc svm_learn.c example1/train.dat example/model
    gcc: example/model: No such file or directory

    alex@UbuntuPC:~/tmp/svm_light$ gcc svm_learn.c example1/train.dat
    example1/train.dat: file not recognized: File format not recognized
    collect2: ld returned 1 exit status

    alex@UbuntuPC:~/tmp/svm_light$ gcc svm_learn.c example1/train.dat example/model
    gcc: example/model: No such file or directory

  8. #8
    Join Date
    Jan 2010
    Beans
    39
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: file not recognized; format not recognized

    am beginning to understand the following as deduced from the commands and subsequent errors below:
    If I add .c to the svm_learn filename, the file is found.
    If I remove the objectfile, the linker error 'ERROR collect 2: ld returned .... " results from the missing object file and inhibiting or preventing the linker making a link between example1/train.dat and example1/model.

    Now the model file is supposed to be generated by the compilation of svm_learn...
    so this suggests the svm_learn.c is not compiling. ...is that correct, what is stopping this ?


    alex@UbuntuPC:~/tmp/svm_light$ gcc svm_learn example1/train.dat example/model
    gcc: svm_learn: No such file or directory
    gcc: example/model: No such file or directory

    alex@UbuntuPC:~/tmp/svm_light$ gcc svm_learn.c example1/train.dat example/model
    gcc: example/model: No such file or directory

    alex@UbuntuPC:~/tmp/svm_light$ gcc svm_learn.c example1/train.dat
    example1/train.dat: file not recognized: File format not recognized
    collect2: ld returned 1 exit status

    alex@UbuntuPC:~/tmp/svm_light$ gcc svm_learn.c example1/train.dat example/model
    gcc: example/model: No such file or directory

  9. #9
    Join Date
    Jan 2010
    Beans
    39
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: file not recognized; format not recognized

    uninstalled and reinstalled the appliction with the example1 subdirectory:
    Here are the command line entires and errors:

    alex@UbuntuPC:~/svm_light$ gcc - v svm_learn.c
    gcc: v: No such file or directory
    gcc: -E or -x required when input is from standard input
    alex@UbuntuPC:~/svm_light$ gcc -c svm_learn.c
    alex@UbuntuPC:~/svm_light$

  10. #10
    Join Date
    Nov 2009
    Beans
    1,081

    Re: file not recognized, file format not recognized, installation, svmlight

    You are seriously confused and appear not to understand such things as basic file types or switches instead of randomly typing commands.

    1- You are typing "- v" when instructions say "-v". This matters.

    2- gcc is a compiler. It takes source code and outputs object files, or passes object files to the linker. Why are you attempting to pass already-compiled executables to gcc?

    3- gcc is a compiler. Why are you passing a training data file to it or parameters, and what do you expect to happen?

    4- You need to understand the significance of the PATH variable.

Page 1 of 2 12 LastLast

Tags for this Thread

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
  •