file "lancemscore" in mscore.64bits-2015-02-24-10-30-201c75c.tar.bz2 is no script!
The file "readme", located in mscore.64bits-2015-02-24-10-30-201c75c.tar.bz2, says that I have to doubleclick on the file "lancemscore" to launch mscore, but "lancemscore" is a pure text file and no shell script. How to execute?
Comments
Hmm, what is the difference between a shell script and a pufe text file?
The lack of the shebang? Or the lack of execute permission?
For the latter:
sh lancemscore
or
chmod +x lancemscore
For the former add
#!/bin/sh
as the first line
In reply to Hmm, what is the difference by Jojo-Schmitz
Hi Jojo,
You write :"Hmm, what is the difference between a shell script and a pufe text file?
The lack of the shebang? Or the lack of execute permission?"
My answer:
1. my experience with UNIX (or LINUX) is rather sufficient (I'm a pensionist, 68 years old,
and during my at occupation at my university, I was a UNIX and LINUX sysadmin for about
40 years! Additiionally, I hold a lot of lectures in shell or bash programming).
So when opening lancemscore I see a pure text file (does not contain any shell
command). I can add "#!/bin/bash" or "#!/bin/sh", but this does obviously not help.
2. Addiionally, if you don't believe me:
Usage of the file command:
file lancemscore
lancemscore: ASCII text, with very long lines
3. Try to execute lancemscore:
bash lancemscore
lancemscore: line 1: To: command not found bash lancemscore
lancemscore: line 1: To: command not found
lancemscore: line 3: Here: command not found
lancemscore: line 4: download: command not found
Couldn't get a file descriptor referring to the console
lancemscore: line 6: unexpected EOF while looking for matching `''
lancemscore: line 24: syntax error: unexpected end of file
I think, this confirms my impression :-)
Contents of lancemscore: (proving that's no shell script!)
====================================
------------------------------------------------- snip ----------------------------
To install a nightly you must have installed Qt5.4. and gcc 4.9
Here is the procedure to install Qt
download Qt5.4 from http://www.qt.io/download-open-source/
open the download directory, here is qt-opensource-linux-x64-1.6.0-8-online.run and use properties to make this file executable.
Then run it. Just click yes or next or validate until it's over. (it is not necessary, at the end to launch Qt Creator). Qt is installed in HOME/Qt
In a terminal check for gcc invoking
gcc -v
if gcc is lower tha 4.9 add ppa:ubuntu-toolchain-r/test in your repositories recharge, and update.
With Qt and gcc 4.9 installed there is only to download the last herebelow nightly. Extract it to a directory of your choice, for instance HOME/mscorenight. You find in it this readit, the binary "mscore", and a short script "lancemscore". This script tells mscore where to find Qt files. If your Qt is not in HOME/Qt modify the script accordingly.
Doubleclick the script to launch mscore. If it fails invoke the script from a terminal in HOME/mscorenight to see the messages. You can also invoke the script (with it full path) from a menu launcher.
To upgrade just download, extract (replacing old files)
create a directory, for instance ~/musenight
-------------------------------------- snap ------------------------------
Kind regards
Joachim Backes
In reply to Hi Jojo, You write :"Hmm, by Joachim Backes
I haven't looked at the file, I just assumed it to be what Robert showed at several occasions on other threads. Apparently not so...
And, well, a shell script is a text file, but yes, of course not every text file is a shell script.
Robert: seems your lansmscore in that archive is more or less a copy of the readme (just a few bytes shorter)
In reply to Hi Jojo, You write :"Hmm, by Joachim Backes
I apologize
I just check in my virtual machine
1/ lancemscore should be as follows
properties are : anybody allowed to read and write; is executable
content is
#!/bin/bash
#lancemscore
export PATH=~/Qt/5.4/gcc_64/bin/:$PATH
export QT_PLUGIN_PATH=~/Qt/5.4/gcc_64/plugins/
export LD_LIBRARY_PATH=~/Qt/5.4/gcc_64/lib/
./mscore
It appears that the file "lancemscore" I included has the same content as the "readme" file
I hope next upload will be better
Meanwhile you could manufacture a good launch script and try.
If you want I create a virtual Fedora and try my uploads
In reply to I apologize I just check in by robert leleu
Hi Robert,
sounds good.
But I saw that I don't need lancemscore because in Fedora 21, qt5 is available as installable Fedora package, and I had it installed already 2 months ago (installation was done into the Fedora standard pathes).
So the mscore binary in
mscore.64bits-2015-02-24-10-30-201c75c.tar.bz2 runs immediately in F21.
Kind regards (from pensionist to pensionist)
Joachim Backes
In reply to Hi Robert, sounds good. But I by Joachim Backes
don't make me envy, still 14 years till retirement :-)
I'm happy that you found my file lancemscore. That's an innovation mine. It is shipped labeled "executable".
What is your OS ? Mine is Mint17 Rebecca, and such a file under Rebecca will execute when dblclicked, or using the contextual menu, or, at least invoking it from a terminal open in its repertory.
Let me know
Thanks
PS Actually I uploaded this morning, and have to check on a virtual machine. I report later.
In reply to I'm happy that you found my by robert leleu
Hi Robert,
My platform: Fedora 21 x86_64 (LINUX)
Regards
Joachim Backes
P.S.: It seems that lancemscore in mscore.64bits-2015-02-24-10-30-201c75c.tar.bz2 contains a wrong text (something went wrong during building this file). This is my impression.
In reply to Hi Robert, My platform: by Joachim Backes
Glad to meet you. I'am retired 81 years with only personal experience in personal computing.
I just checked my system on a virtual machine running (also) Mint Rebecca, in which I first installed Qt5.4 and the gcc 4.9. And yes it happened as I hoped : dblclicking lancemscore displayed the nightly mscore
In reply to Glad to meet you. I'am by robert leleu
but your lancmescore and the one in the latest nightly archive are sure different...
In reply to but your lancmescore and the by Jojo-Schmitz
for sure
I just found the error, and reported in an answer to our Fedora collegue....
@ joachim
All errors corrected, works for Mint17 as specified.
I tried for a virtual Fedora, but did not find how to install gcc in Fedora.
Do you know ?
In reply to @ joachim All errors by robert leleu
@robert
Please try "sudo yum install gcc", if you have sudo rights.
Otherwise you first should login as root, and then "yum install gcc".
Joachim Backes
In reply to @robert Please try "sudo yum by Joachim Backes
thanks. Installed gcc 4.9
Had to install Qt5.4 from Qt site (Fedora delivers 5.3)
libportaudio.so.2 is requested by mscore
I launched
sudo yum install libportaudio.so.2
which installed a lot of packages....but mscore claims again it needs libportaudio
There is a fugitive line http://forums.fedora-fr.org/viewtopic.php?id=61853
Perhaps you solve this point ?
In reply to thanks. Installed gcc 4.9 Had by robert leleu
Hallo Robert,
libportaudio belongs to the package portaudio-devel, so you should it install by
sudo yum install portaudio-devel.
This should solve the dependencies :-)
Au revoir
Joachim Backes
In reply to Hallo Robert, libportaudio by Joachim Backes
Thanks. The nightly is launched through ./lancemscore
I am not able to obtbin it with a dblclick or a menu entry, bat that's a Fedora problem
I modified the readme in the 64bits uploaded file (valid from to-morrow)
I want to adjust this readme file for many Linux distribution, and I receive wih pleasure any suggestion.