Beiträge von 0rtega

    Zitat von "davidh2k"
    Code
    ls -la /media/5be1f17f-d7d9-490f-9838-c5938ab9df14/Videos/Downloads/
    stats /media/5be1f17f-d7d9-490f-9838-c5938ab9df14/Videos/Downloads


    Greetings
    David


    The correct command is this:

    Code
    stat /media/5be1f17f-d7d9-490f-9838-c5938ab9df14/Videos/Downloads

    Thanks I have just written the commands in my "hb_compiler_notes.txt" file.


    Sorry for the misunderstanding, is fault of my bad english :D


    What I need is this:

    Bash
    #!/bin/bash
    hbmk2 _source_file_name_ -lhbct


    Then I save this script, calling it compile.sh (chmod +x compile.sh)


    Then I want to issue this compile command in bash promt:

    Code
    #compile.sh source_name.prg


    I want to use "_source_file_name_" as a argument in the command "compile.sh".

    I am no expert but you can try to issue these commands:


    -run "Apt-Clean" and "Apt-Clean silent" from the OMV-Extras plugin


    -run via SSH with root access these commands:

    Code
    apt-get update
    apt-get upgrade
    apt-get install -f
    apt-get clean


    Then reboot and test if the problem is gone.
    I repeat, I am no expert :D

    I know that is off topic... :) but I want to you know that it works great also on the raspberry pi!
    The compilation lasted several hours but in the end it worked.
    Sorry to bother you again with this, but I was wondering how to "disinstall" a .deb package ?


    ps: I need to write a bash little script that execute this command:


    Code
    hbmk2 foo -lhbct


    where "foo" is a variable (the source program file), I know how to do it in Dos but not in linux :D


    Edit:
    I want to say a big thank you to ryeco for this great gift!
    I have ported my programs in debian (OMV and Raspberry PI !!!) in 15 minutes!!! Amazing!
    I have changed only the directory names inside of the .prg (for example "C:\directory1\directory2" now is "C/directory1/directory2")


    I have installed curl and lynx (a txt browser that i use to dump html pages in txt) and all works flawlessly.
    Now that I can use my beloved compiler I can automate almost everything without knowing bash, awk, vi (I hate it! :D). For me is pretty amazing !
    Thank you again!

    Thanks I'm compiling right now... :)


    Edit:
    It's simply amazing!


    This is the link to the newest sources: https://github.com/harbour/core/
    Then I followed your instructions:

    Code
    apt-get install build-essential bash git gcc binutils fakeroot debhelper valgrind upx uncrustify
    git clone https://github.com/harbour/core.git harbour-core
    fakeroot debian/rules binary
    dpkg -i harbour_3.2.0-1_amd64.deb


    I have written a little program with nano and is working in debian! I know that for you is normal but for me is simply mindblowing!!!
    I haven't understand many things, for example how it works if I want to use specific libraries, but just this for me is great!
    Thank you so much

    Zitat von "ryecoaaron"

    If you aren't writing in C++ then it might be easier than I thought. Maybe this would work to compile your harbour code to linux executable?


    I do a lot of database program so this has me interested :)


    I also work with databases (MySql), no more with harbour (but i still use it for batch programs on big "raw" data).
    It could seem old and surpassed but is a great and easy to learn and powerfull language.
    Thanks for the link, this seem interesting:


    I have to understand how to compile the harbour compiler (!? :D )

    Zitat von "ryecoaaron"

    If you have been working with C++ for that long, I wouldn't think it would take long to port it to Linux C++ using g++ (c++ linux compiler) and harbour


    My programs are written in harbour (dBase syntax) then pre-compiled in "pcode" then the "pcode" is compiled with the Borland C++ that generates a .exe
    So in the end, I got a C++ program executable, without writing a single line of C++ :D
    I have written (a long time ago...) just little programs in Lattice C on my Amiga 500 :D


    Zitat von "ryecoaaron"

    Also, wine may not work with your app. You might have good luck with dosemu though.


    Thanks for this tip and your kindness, I will look into it. Thanks again.

    Wow, that was quick! :D


    Installed right now without a problem, I can start to configure the directories, the router for the firewall rules and I can start .


    Thank you!

    Zitat von "ryecoaaron"

    That is my fault. The newest omv-extras uses the wheezy apt preference file. Give me a little time to fix it.


    No problem, take your time I'm not in a hurry :D
    Thanks for everything

    Sure thanks! :D


    I use this:

    Code
    compile.bat %1 %2 %3 %4 %5 %6 %7 %8 %9 /Z /L xhb /L hbnf /L ortega /L socket /NX /C


    meaning:
    /Z Link Zip libraries
    /L Link additional [x]Harbour library
    /NX No run, compile and link only
    /C Create console EXE


    The "ortega" library is my personal functions library (I precompile it with borland 5.5 to create a .lib that I link to the final .exe)
    In linux it should work also, instead to create a .lib from my ortega.prg source, to compile the main program source file + the ortega.prg source.
    (example: big_program.prg + ortega.prg) to generate the executable.


    That calls this... (this one is long... :D)


    Here the output:

    Code
    root@openmediavault:~# apt-cache policy transmission-cli
    transmission-cli:
      Installed: (none)
      Candidate: 2.03-2
      Version table:
         2.75-1-15~1.gbp4ed609 0
            500 http://packages.omv-extras.org/debian/ sardaukar/main amd64 Packages
         2.03-2 0
            990 http://ftp.it.debian.org/debian/ squeeze/main amd64 Packages


    Thanks for looking into it.

    Zitat von "ryecoaaron"

    It seems that it is cross platform. Why run it under wine then?


    I have developed software for almost 25 years, but only in Dos/Windows :D
    With that compiler (but is more correct to call it "pre-compiler") I have to pre-compile my source then I use the old Borland 5.5 C++ compiler to convert to the final .exe file.
    In linux I have no idea how to compile my programs... :D