{"action":"created","issue":{"url":"https://api.github.com/repos/jmacdonald/amp/issues/108","repository_url":"https://api.github.com/repos/jmacdonald/amp","labels_url":"https://api.github.com/repos/jmacdonald/amp/issues/108/labels{/name}","comments_url":"https://api.github.com/repos/jmacdonald/amp/issues/108/comments","events_url":"https://api.github.com/repos/jmacdonald/amp/issues/108/events","html_url":"https://github.com/jmacdonald/amp/issues/108","id":360577676,"node_id":"MDU6SXNzdWUzNjA1Nzc2NzY=","number":108,"title":"Error compiling on Pop!_OS (Ubuntu 18.04) in libssh2-sys","user":{"login":"jbrains","id":61505,"node_id":"MDQ6VXNlcjYxNTA1","avatar_url":"https://avatars1.githubusercontent.com/u/61505?v=4","gravatar_id":"","url":"https://api.github.com/users/jbrains","html_url":"https://github.com/jbrains","followers_url":"https://api.github.com/users/jbrains/followers","following_url":"https://api.github.com/users/jbrains/following{/other_user}","gists_url":"https://api.github.com/users/jbrains/gists{/gist_id}","starred_url":"https://api.github.com/users/jbrains/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbrains/subscriptions","organizations_url":"https://api.github.com/users/jbrains/orgs","repos_url":"https://api.github.com/users/jbrains/repos","events_url":"https://api.github.com/users/jbrains/events{/privacy}","received_events_url":"https://api.github.com/users/jbrains/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-15T21:31:27Z","updated_at":"2018-09-16T02:26:54Z","closed_at":null,"author_association":"NONE","body":"I don't know what I'm doing; please be gentle.\r\n\r\nI followed the instructions at https://linoxide.com/tools/amp-text-editor-linux-terminal/ for Ubuntu 16.04, even though I'm running Pop!_OS, which is \"essentially\" Ubuntu 18.04.\r\n\r\n```\r\n$ uname -a\r\nLinux casper 4.15.0-23-generic #25-Ubuntu SMP Wed May 23 18:02:16 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux\r\n```\r\n\r\nNo issues with the prerequisite steps. `libssl-dev` and `cargo` appear to have installed without incident. Following is the output from my second attempt.\r\n\r\n```\r\n~ cargo install --git https://github.com/jmacdonald/amp/\r\n    Updating git repository `https://github.com/jmacdonald/amp/`\r\n  Installing amp v0.5.0 (https://github.com/jmacdonald/amp/#242e1a77)           \r\n    Updating git repository `https://github.com/jmacdonald/termbox-sys`\r\n    Updating registry `https://github.com/rust-lang/crates.io-index`            \r\n   Compiling byteorder v1.2.6\r\n   Compiling unicode-normalization v0.1.7\r\n   Compiling percent-encoding v1.0.1\r\n   Compiling glob v0.2.11\r\n   Compiling unicode-xid v0.0.4\r\n   Compiling unicode-segmentation v1.0.3\r\n   Compiling unicode-xid v0.1.0\r\n   Compiling winapi v0.2.8\r\n   Compiling term v0.4.6\r\n   Compiling rand_core v0.2.1\r\n   Compiling ryu v0.2.6\r\n   Compiling termbox-sys v0.2.10 (https://github.com/jmacdonald/termbox-sys#aa62b4d0)\r\n   Compiling bitflags v0.2.1\r\n   Compiling version_check v0.1.4\r\n   Compiling rustc-serialize v0.3.24\r\n   Compiling fnv v1.0.6\r\n   Compiling smallvec v0.4.5\r\n   Compiling cfg-if v0.1.5\r\n   Compiling utf8-ranges v0.1.3\r\n   Compiling unicode-width v0.1.5\r\n   Compiling yaml-rust v0.3.5\r\n   Compiling libc v0.2.43\r\n   Compiling openssl-probe v0.1.2\r\n   Compiling plist v0.2.4\r\n   Compiling remove_dir_all v0.5.1\r\n   Compiling safemem v0.2.0\r\n   Compiling fragment v0.3.1\r\n   Compiling rustc-demangle v0.1.9\r\n   Compiling serde v1.0.78\r\n   Compiling itoa v0.4.3\r\n   Compiling num-integer v0.1.39\r\n   Compiling num-traits v0.2.6\r\n   Compiling xdg v2.1.0\r\n   Compiling cc v1.0.25\r\n   Compiling bitflags v0.9.1\r\n   Compiling bitflags v1.0.4\r\n   Compiling regex-syntax v0.4.2\r\n   Compiling bitflags v0.8.2\r\n   Compiling proc-macro2 v0.4.19\r\n   Compiling winapi-build v0.1.1\r\n   Compiling pkg-config v0.3.14\r\n   Compiling linked-hash-map v0.5.1\r\n   Compiling luthor v0.1.7\r\n   Compiling regex-syntax v0.3.9\r\n   Compiling matches v0.1.8\r\n   Compiling same-file v1.0.3\r\n   Compiling lazy_static v1.1.0\r\n   Compiling log v0.4.5\r\n   Compiling pad v0.1.5\r\n   Compiling base64 v0.8.0\r\n   Compiling termion v1.5.1\r\n   Compiling time v0.1.40\r\n   Compiling memchr v0.1.11\r\n   Compiling rand v0.5.5\r\n   Compiling xcb v0.8.2\r\n   Compiling app_dirs v1.2.1\r\n   Compiling xml-rs v0.7.0\r\n   Compiling kernel32-sys v0.2.2\r\n   Compiling yaml-rust v0.4.2\r\n   Compiling syntex_pos v0.58.1\r\n   Compiling miniz-sys v0.1.10\r\n   Compiling cmake v0.1.34\r\n   Compiling backtrace-sys v0.1.24\r\n   Compiling libssh2-sys v0.2.11\r\nerror[E0425]: cannot find function `read_to_string` in module `fs`\r\n  --> /home/jbrains/.cargo/registry/src/github.com-1ecc6299db9ec823/libssh2-sys-0.2.11/build.rs:99:26\r\n   |\r\n99 |         let config = fs::read_to_string(\"libssh2/src/libssh2_config_cmake.h.in\")\r\n   |                          ^^^^^^^^^^^^^^ did you mean `read_string`?\r\n\r\nerror[E0425]: cannot find function `read_to_string` in module `fs`\r\n   --> /home/jbrains/.cargo/registry/src/github.com-1ecc6299db9ec823/libssh2-sys-0.2.11/build.rs:124:24\r\n    |\r\n124 |     let libssh2h = fs::read_to_string(\"libssh2/include/libssh2.h\").unwrap();\r\n    |                        ^^^^^^^^^^^^^^ did you mean `read_string`?\r\n\r\nerror[E0425]: cannot find function `read_to_string` in module `fs`\r\n   --> /home/jbrains/.cargo/registry/src/github.com-1ecc6299db9ec823/libssh2-sys-0.2.11/build.rs:134:13\r\n    |\r\n134 |         fs::read_to_string(\"libssh2/libssh2.pc.in\")\r\n    |             ^^^^^^^^^^^^^^ did you mean `read_string`?\r\n\r\nerror[E0658]: use of unstable library feature 'fs_read_write' (see issue #46588)\r\n   --> /home/jbrains/.cargo/registry/src/github.com-1ecc6299db9ec823/libssh2-sys-0.2.11/build.rs:105:9\r\n    |\r\n105 |         fs::write(build.join(\"libssh2_config.h\"), &config).unwrap();\r\n    |         ^^^^^^^^^\r\n\r\nerror[E0658]: use of unstable library feature 'fs_read_write' (see issue #46588)\r\n   --> /home/jbrains/.cargo/registry/src/github.com-1ecc6299db9ec823/libssh2-sys-0.2.11/build.rs:132:5\r\n    |\r\n132 |     fs::write(\r\n    |     ^^^^^^^^^\r\n\r\nerror: aborting due to 5 previous errors\r\n\r\nerror: Could not compile `libssh2-sys`.\r\nwarning: build failed, waiting for other jobs to finish...\r\nerror: failed to compile `amp v0.5.0 (https://github.com/jmacdonald/amp/#242e1a77)`, intermediate artifacts can be found at `/tmp/cargo-install.cwLF7lZmaWEZ`\r\n\r\nCaused by:\r\n  build failed\r\n```\r\n\r\nI am in your hands. Thank you."},"comment":{"url":"https://api.github.com/repos/jmacdonald/amp/issues/comments/421674978","html_url":"https://github.com/jmacdonald/amp/issues/108#issuecomment-421674978","issue_url":"https://api.github.com/repos/jmacdonald/amp/issues/108","id":421674978,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMTY3NDk3OA==","user":{"login":"jmacdonald","id":458253,"node_id":"MDQ6VXNlcjQ1ODI1Mw==","avatar_url":"https://avatars1.githubusercontent.com/u/458253?v=4","gravatar_id":"","url":"https://api.github.com/users/jmacdonald","html_url":"https://github.com/jmacdonald","followers_url":"https://api.github.com/users/jmacdonald/followers","following_url":"https://api.github.com/users/jmacdonald/following{/other_user}","gists_url":"https://api.github.com/users/jmacdonald/gists{/gist_id}","starred_url":"https://api.github.com/users/jmacdonald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmacdonald/subscriptions","organizations_url":"https://api.github.com/users/jmacdonald/orgs","repos_url":"https://api.github.com/users/jmacdonald/repos","events_url":"https://api.github.com/users/jmacdonald/events{/privacy}","received_events_url":"https://api.github.com/users/jmacdonald/received_events","type":"User","site_admin":false},"created_at":"2018-09-16T02:26:54Z","updated_at":"2018-09-16T02:26:54Z","author_association":"OWNER","body":"Hi @jbrains! The best way to compile Amp is via Rust's most recent stable release. Rust manages versions through `rustup`; you can find installation instructions [here](https://www.rust-lang.org/en-US/install.html). If you're using a version of Rust provided by your package manager (`apt-get` if you're Ubuntu/Debian-based), it's likely old. Uninstall that and use `rustup` as linked above, instead. 🙂 "}}
{"actor":{"display_login":"jmacdonald"}}