Closed rautamiekka closed 7 years ago
Install a more up-to-date rustc
. The version you have (1.17.0) is too old and not supported by this app, at least 1.20.0 is required to compile it.
^
at least 1.20.0
That's be good to mention.
Hmm, still not although I now got 1.21.0: it compiles just fine after re-download, but doesn't execute any more correctly:
jaervinen@rautadesk1-vm-ubuserv1604-0:~/Downloads$ sudo add-apt-repository ppa:ubuntu-mozilla-security/rust-updates
[sudo] password for jaervinen:
This PPA is used for prepearing rust updates that will be required for a future Firefox release.
This PPA isn't intended for general usage. If you want to use rust, please go to https://www.rustup.rs/
More info: https://launchpad.net/~ubuntu-mozilla-security/+archive/ubuntu/rust-updates
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keyring `/tmp/tmplb4kaik8/secring.gpg' created
gpg: keyring `/tmp/tmplb4kaik8/pubring.gpg' created
gpg: requesting key 7EBC211F from hkp server keyserver.ubuntu.com
gpg: /tmp/tmplb4kaik8/trustdb.gpg: trustdb created
gpg: key 7EBC211F: public key "Launchpad PPA for Ubuntu Mozilla Security Team" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK
jaervinen@rautadesk1-vm-ubuserv1604-0:~/Downloads$ upg
Ign http://dl.google.com/linux/chrome/deb stable InRelease
Get: 1 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Hit http://archive.canonical.com/ubuntu xenial InRelease
Hit http://ppa.launchpad.net/freecad-maintainers/freecad-daily/ubuntu xenial InRelease
Hit http://dl.google.com/linux/chrome/deb stable Release
Hit http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial InRelease
Hit http://fi.archive.ubuntu.com/ubuntu xenial InRelease
Get: 2 http://fi.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Hit https://dl.winehq.org/wine-builds/ubuntu xenial InRelease
Hit http://ppa.launchpad.net/js-reynaud/ppa-kicad/ubuntu xenial InRelease
Hit https://deb.opera.com/opera-stable stable InRelease
Hit http://screenshots.getdeb.net xenial-getdeb InRelease
Get: 3 http://ppa.launchpad.net/ubuntu-mozilla-security/rust-updates/ubuntu xenial InRelease [23.9 kB]
Hit http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease
Get: 4 http://ppa.launchpad.net/ubuntu-mozilla-security/rust-updates/ubuntu xenial/main amd64 Packages [7,164 B]
Get: 5 http://fi.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [652 kB]
Get: 6 http://ppa.launchpad.net/ubuntu-mozilla-security/rust-updates/ubuntu xenial/main i386 Packages [7,172 B]
Get: 7 http://ppa.launchpad.net/ubuntu-mozilla-security/rust-updates/ubuntu xenial/main Translation-en [5,228 B]
Get: 8 http://fi.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [616 kB]
Get: 9 http://fi.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [543 kB]
Get: 10 http://fi.archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [517 kB]
Fetched 2,576 kB in 7s (336 kB/s)
Deleting obsolete downloaded files
Current status: 3 (+3) upgradable.
The following NEW packages will be installed:
libstd-rust-1.21{a}
The following packages will be upgraded:
libllvm4.0 libstd-rust-dev rustc
The following packages are RECOMMENDED but will NOT be installed:
rust-gdb rust-lldb
3 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 70.6 MB of archives. After unpacking 114 MB will be used.
Do you want to continue? [Y/n/?]
Get: 1 http://ppa.launchpad.net/ubuntu-mozilla-security/rust-updates/ubuntu xenial/main amd64 libllvm4.0 amd64 1:4.0.1-0ubuntu0.16.04.4 [12.2 MB]
Get: 2 http://ppa.launchpad.net/ubuntu-mozilla-security/rust-updates/ubuntu xenial/main amd64 libstd-rust-1.21 amd64 1.21.0+dfsg1+llvm-0ubuntu3~16.04.1 [36.8 MB]
Get: 3 http://ppa.launchpad.net/ubuntu-mozilla-security/rust-updates/ubuntu xenial/main amd64 rustc amd64 1.21.0+dfsg1+llvm-0ubuntu3~16.04.1 [1,196 kB]
Get: 4 http://ppa.launchpad.net/ubuntu-mozilla-security/rust-updates/ubuntu xenial/main amd64 libstd-rust-dev amd64 1.21.0+dfsg1+llvm-0ubuntu3~16.04.1 [20.4 MB]
Fetched 70.6 MB in 2min 33s (461 kB/s)
(Reading database ... 376073 files and directories currently installed.)
Preparing to unpack .../libllvm4.0_1%3a4.0.1-0ubuntu0.16.04.4_amd64.deb ...
Unpacking libllvm4.0:amd64 (1:4.0.1-0ubuntu0.16.04.4) over (1:4.0-1ubuntu1~16.04.2) ...
Selecting previously unselected package libstd-rust-1.21:amd64.
Preparing to unpack .../libstd-rust-1.21_1.21.0+dfsg1+llvm-0ubuntu3~16.04.1_amd64.deb ...
Unpacking libstd-rust-1.21:amd64 (1.21.0+dfsg1+llvm-0ubuntu3~16.04.1) ...
Preparing to unpack .../rustc_1.21.0+dfsg1+llvm-0ubuntu3~16.04.1_amd64.deb ...
Unpacking rustc (1.21.0+dfsg1+llvm-0ubuntu3~16.04.1) over (1.17.0+dfsg2-8~ubuntu0.16.04.2) ...
Preparing to unpack .../libstd-rust-dev_1.21.0+dfsg1+llvm-0ubuntu3~16.04.1_amd64.deb ...
Unpacking libstd-rust-dev:amd64 (1.21.0+dfsg1+llvm-0ubuntu3~16.04.1) over (1.17.0+dfsg2-8~ubuntu0.16.04.2) ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up libllvm4.0:amd64 (1:4.0.1-0ubuntu0.16.04.4) ...
Setting up libstd-rust-1.21:amd64 (1.21.0+dfsg1+llvm-0ubuntu3~16.04.1) ...
Setting up libstd-rust-dev:amd64 (1.21.0+dfsg1+llvm-0ubuntu3~16.04.1) ...
Setting up rustc (1.21.0+dfsg1+llvm-0ubuntu3~16.04.1) ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Current status: 0 (-3) upgradable, 0 (-4) new.
jaervinen@rautadesk1-vm-ubuserv1604-0:~/Downloads$ ./ternimal.rs length=100 segments=50 thickness=1,4,1,0 radius=6,12 gradient=0:#666600,0.5:#00ff00,1:#003300
./ternimal.rs: line 1: //: Is a directory
./ternimal.rs: line 2: //: Is a directory
./ternimal.rs: line 3: syntax error near unexpected token `('
./ternimal.rs: line 3: `// Copyright (c) 2017 Philipp Emanuel Weidmann <pew@worldwidemann.com>'
jaervinen@rautadesk1-vm-ubuserv1604-0:~/Downloads$ wget https://github.com/p-e-w/ternimal/raw/master/ternimal.rs -O ternimal.rs
--2017-11-04 23:09:27-- https://github.com/p-e-w/ternimal/raw/master/ternimal.rs
Resolving github.com (github.com)... 192.30.253.113, 192.30.253.112
Connecting to github.com (github.com)|192.30.253.113|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/p-e-w/ternimal/master/ternimal.rs [following]
--2017-11-04 23:09:28-- https://raw.githubusercontent.com/p-e-w/ternimal/master/ternimal.rs
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.84.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.84.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 38158 (37K) [text/plain]
Saving to: ‘ternimal.rs’
ternimal.rs 100%[==================================================================================================================================================================>] 37.26K --.-KB/s in 0.08s
2017-11-04 23:09:28 (454 KB/s) - ‘ternimal.rs’ saved [38158/38158]
jaervinen@rautadesk1-vm-ubuserv1604-0:~/Downloads$ rustc -O ternimal.rs
jaervinen@rautadesk1-vm-ubuserv1604-0:~/Downloads$ ./ternimal.rs length=100 segments=50 thickness=1,4,1,0 radius=6,12 gradient=0:#666600,0.5:#00ff00,1:#003300
./ternimal.rs: line 1: //: Is a directory
./ternimal.rs: line 2: //: Is a directory
./ternimal.rs: line 3: syntax error near unexpected token `('
./ternimal.rs: line 3: `// Copyright (c) 2017 Philipp Emanuel Weidmann <pew@worldwidemann.com>'
jaervinen@rautadesk1-vm-ubuserv1604-0:~/Downloads$ rustc --version
rustc 1.21.0
jaervinen@rautadesk1-vm-ubuserv1604-0:~/Downloads$ ./ternimal.rs length=100 segments=50 thickness=1,4,1,0 radius=6,12 gradient=0:#666600,0.5:#00ff00,1:#003300
You're trying to run the source code as a shell script, not the binary you compiled before. Run it without the .rs
extension.
^ Ok, now it works. Thanks for the help, this is a completely new thing to me.
The readme could use updating to mention the minimum required version and executing without the rs
extension.
Glad to hear it is working for you now. The README actually does state that Rust >= 1.20 is required for building. It's right there in the build instructions.
@rautamiekka I've taken the liberty of removing the output of cat
ing the entire source code from this issue, as it adds nothing but another 1000+ lines to a report that is already overly long.
I guess I didn't read it thoroughly enough.
Here's everything from the
xfce4-terminal
0.6.3 on Xubuntu 16.04 LTS:So, assuming I'm not doing anything wrong, Ternimal ain't working as straightforwardly as it's intended to.