Termux総合
■ このスレッドは過去ログ倉庫に格納されています
>>117 単刀直入に「どうすればいいのでしょうか?」 aptでnumpy,scipyを導入時のunreference __fixunstfsi解決 libcompiler_rt.soが7.0.1だと駄目で、7.0.0へ戻す必要ありでした org pandasまで遠い (  ̄- ̄) $ apt install numpy scipy $ pip list Package Version ---------- -------- numpy 1.15.4 pip 18.1 scipy 1.2.0rc1 setuptools 40.6.2 # 7.0.1は、__fixunstfsiを含まない apt install libcompiler-rt-termux=7.0.0 cd /data/data/com.termux/files/usr/lib ln -sf libcompiler_rt-termux.so libcompiler_rt.so sed -i 's/.\/numpy-1.15.4-py3.7-linux-aarch64.egg/.\/numpy-1.15.4.egg/g' /data/data/com.termux/files/usr/lib/python3.7/site-packages/easy-install.pth mv /data/data/com.termux/files/usr/lib/python3.7/site-packages/numpy-1.15.4-py3.7-linux-aarch64.egg /data/data/com.termux/files/usr/lib/python3.7/site-packages/numpy-1.15.4.egg sed -i 's/.\/scipy-1.2.0rc1-py3.7-linux-aarch64.egg/.\/scipy-1.2.0rc1.egg/g' /data/data/com.termux/files/usr/lib/python3.7/site-packages/easy-install.pth mv /data/data/com.termux/files/usr/lib/python3.7/site-packages/scipy-1.2.0rc1-py3.7-linux-aarch64.egg /data/data/com.termux/files/usr/lib/python3.7/site-packages/scipy-1.2.0rc1.egg >>120 解決おめでとう そして情報共有ありがとう 省メモリ環境でpandas入れるには、PCでtermux-packagesからbuildでしょうか numpyやscipyがGIT上に見つからないですが何処かにあるのかな、例としてみたかったw 2G機種だと、何してもkilled食らってしまう、もう消せるアプリ無いくらいまで無効化済み 直近のtermuxだとpython 3.7に上がってて、他アプリのpandasバイナリ持ってくるのも駄目かも(3.6だし、pydoroid3とか) まだ希望は・・・ある? GitHub - its-pointless/termux-packages: Android terminal emulator and Linux environment - packages repository. https://github.com/its-pointless/termux-packages How To Make Own Deb Package In Termux (Part-1) | Hax4Us https://www.hax4us.com/2018/01/how-to-make-own-deb-package-in-termux.html How To Make/Create Deb Package In Termux (Part-2) | Hax4Us https://www.hax4us.com/2018/01/how-to-makecreate-deb-package-in-termux.html pandsの症状、こちらの方と一緒w Pip Install Pandas 0.23.4 on Python 3.7 · Issue #3012 · termux/termux-packages · GitHub ttps://github.com/termux/termux-packages/issues/3012 numpy, scipy が入っている、Docker とか、Chef, Ansible のレシピとか、無いのか? TermuxArchなら pacman -S python-〇〇で簡単導入 レシピやTermuxArch調べてみます、ありがとうございます また、pipに--no-cache-dirや--no-build-isolation付与しても、pandasのbuild失敗しました org >>126 123とか、その先を追ってみるに、RAMが足りないのが原因かもね 他のプログラムを全て終了させて、でも駄目ならクロスコンパイルしかないんじゃないかな termuxarch出来ました、termuxarch上でpandasの導入簡単ですね あともう一歩、このバイナリをtermuxへ持っていってみますwww termuxarchのpandasを、termuxへ持っていたら悲しい結果になりました build時のオプション要変更で、持ってくる案は駄目でした 大人しくtermuzarch内で org $ python Python 3.7.2 (default, Dec 28 2018, 01:00:42) [Clang 7.0.2 (https://android.googlesource.com/toolchain/clang 003100370607242d on linux Type "help", "copyright", "credits" or "license" for more information. >>> import pandas Traceback (most recent call last): File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/pandas/__init__.py", line 26, in <module> from pandas._libs import (hashtable as _hashtable, File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/pandas/_libs/__init__.py", line 4, in <module> from .tslib import iNaT, NaT, Timestamp, Timedelta, OutOfBoundsDatetime ImportError: dlopen failed: empty/missing DT_HASH in "/data/data/com.termux/files/usr/lib/python3.7/site-packages/pandas/_libs/tslib.so" (built with --hash-style=gnu?) ディレクトリ違いだろうからtermuxの構成でBuildしてみては? termux上のvimでskk for androidを使うと、変換候補が出るときに画面が一瞬反転してチカチカするのですが、回避方法とかありますでしょうか…? Android 5.1 vim-python 8.1 eskkもGoogle日本語入力も大丈夫だけどなぁ Android上のソフトウェアキーボードを切り替える時は2回に1回くらいチラつく BB key2にてtermux環境構築中です Google日本語入力(Mozc)系で英数字いれるのにインライン入力できないんですけど設定でもないですよね? termuxの入力エリアでも直接入力できなくてエンターキー押す回数増えるのが嫌で普段はblackberry初期英語キーボードでeskk使ってます >>131 navigation bar hiderが原因でした…すいませんでした。 itspointlessのgcc-7を部分的に利用して buildはok?、実行時にエラー crosscompileは大変そうだしwww $ pip3 download -d src --no-binary :all: pandas $ cd src $ tar zxvf pandas-0.23.4.tar.gz $ cd pandas-0.23.4 $ CC="gcc-7" LDFLAGS=" -lm -lcompiler_rt" pip3 install -vvv . building 'pandas._libs.window' extension gcc-7 -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O 3 -Wall -Oz -Oz -fPIC -Ipandas/_libs/src/klib -Ipandas/_libs/src -I/data/data/com.termux/files/usr/lib/python3.7/site-packages/numpy-1.15.4.egg/numpy/core/include -I/data from pandas/_libs/window.cpp:4: /data/data/com.termux/files/usr/include/string.h:205:9: error: attributes are not allowed on a function-definition __prefer_this_overload { ^ In file included from /data/data/com.termux/files/usr/include/c++/v1/string.h:61: $ $ cd ~/../usr/tmp/pip-install-xxxxxxxs/pandas $ LDFLAGS=" -lm -lcompiler_rt" pip3 install -vvv . Successfully installed pandas-0.23.4 $ python >>> import numpy as np File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/pandas/core/dtypes/inference.py", line 24, in <module> is_scalar = lib.isscalar AttributeError: module 'pandas._libs.lib' has no attribute 'isscalar' >>> 需要ないかもだけど、2Gメモリの機種でpandas入ったよ gcc-7とLDFLAGSがポイントでした $ diff /data/data/com.termux/files/usr/include/c++/v1/type_traits.200120 /data/data/com.termux/files/usr/include/c++/v1/type_traits --- /data/data/com.termux/files/usr/include/c++/v1/type_traits.200120 +++ /data/data/com.termux/files/usr/include/c++/v1/type_traits @@ -736,8 +736,8 @@ #ifdef __clang__ template <> struct __libcpp_is_floating_point<__fp16> : public true_type {}; #endif -#ifdef __FLT16_MANT_DIG__ -template <> struct __libcpp_is_floating_point<_Float16> : public true_type {}; +#ifdef __FLT16_MANT_DIG__ && defined(__clang__) +// template <> struct __libcpp_is_floating_point<_Float16> : public true_type {}; #endif template <> struct __libcpp_is_floating_point<float> : public true_type {}; template <> struct __libcpp_is_floating_point<double> : public true_type {}; $ diff /data/data/com.termux/files/usr/include/string.200120.h /data/data/com.termux/files/usr/include/string.h --- /data/data/com.termux/files/usr/include/string.200120.h +++ /data/data/com.termux/files/usr/include/string.h @@ -188,7 +188,7 @@ #endif /* Const-correct overloads. Placed after FORTIFY so we call those functions, if possible. */ -#if defined(__cplusplus) +#if defined(__cplusplus) && defined(__clang__) /* * Use two enable_ifs so these overloads don't conflict with + are preferred over libcxx's. This can * be reduced to 1 after libcxx recognizes that we have const-correct overloads. $ CC='gcc-7' LDFLAGS=" -lm -lcompiler_rt" pip3 install 次、vimでskk頑張るお 動いてそうですね phantomjs、Metasploit興味あるお neovimでeskk動いてるけどlarge_dictionary指定して色々やったけどskk辞書動いてくれず ユーザー辞書だけ動く状況だったからユーザー辞書にskk辞書を指定して使ってる 邪道すぎるけど >>140 >>141 それ引っ掛かってました、ありがとう eskk動きました、動きがもっさりなんだけど、端末のせいかな? 辞書はSKK-JISHO.Lで大きめの辞書を設定しました >>114 nokogiri 入らないとあったけど、これじゃだめ? nokogiri-1.10.0 はいったよ nokoogiri failed gem install #79 ttps://github.com/termux/termux-packages/issues/79 >>141 ほんとだutf8にしたら動いたありがとう >>71 phantomjsがどうさしたのは、TermuxArchですか? termuxあるいはandroid ndkだと、buikd済みバイナリ見つからない >>147 恐らくtermuxarchかな termuxからtermuxarchのプログラム直接呼べたりしないかなー >>149 ~/.termux/termux.properties extra-keys = [['ESC','/','~','=','UP','{','}'],['TAB','CTRL','ALT','LEFT','DOWN','RIGHT',':']] とりあえずこんな感じにしてみた使い勝手でまた変えると思うけど >>150 arch/startarch -c 'phantomjs' test.js >>151 お、画面に表示されるソフトキーなのね サンキュー >>151 おぉヒントありがとう! extra-keys = [] これで特殊キー列消せた bashでzmv使うときだけzsh使うかな 補完便利なのは分かるんだけど、慣れるとbashしか使えないとき困りそうでね >>160 zmvコマンド初めて知った。ありがとー 僕もbashから移って1週間ぐらいだから Tab補完便利やなぁぐらいの感想笑笑 >>161 fishも名前聞くけどzshの方がよく聞くから zsh使ってみた感じ笑笑 FireHD10(2017)でtermuxつかってるけどzsh+prezto軽快に動くからおすすめだよ preztoのハマりポイントはとしては init.zshや様々なモジュールをsourceコマンドで読み込むとき フルパスじゃ読み込めないことだよ phantomjsは動いた electron動いた人いますか? 私の環境だと、起動時に下のsoがどうしても解決出来ない libnss3.so => not found libnssutil3.so => not found libsmime3.so => not found libnspr4.so => not found ありがとう、electron起動ok nightmareをelextron installをskipして、npm install したい オプションあったかな と、スレの趣旨とズレすぎ? >>169 今は、Ruby, Nokogiri, Selenium WebDriver を使う もう、phantomjs は終了した。 今は、Chrome で、headless mode を使う >>173 返信ありがとう、termuxでchrome driverでchromeのheadlessいけますか? phantomjsなら、termuxからtermux arch内のバイナリで動いた googkeの検索とキャプチャもおk nightmareを使い方はできない、ekectronもまだ chromeのヘッドレスは未確認 phantomjsが動くだけでも嬉しい 去年の9月頃にTermuxArch やらTermuxUbuntuでChromiumもFirefoxもPhantomJSもヘッドレスでスクリーンショットまで確認できたよ ただPythonからインスタンス作成時にWebDriveがフリーズして使えなかったから自分はLinuxDeployメインになっちゃってる >>177 情報ありがとう 実行時は、termuxarchに入らないと駄目ですか? Tasker連携で、termuxから起動したいです termux からprootで、termuxarchへ入りますが、nodejsのchild_processを経由すると、上手く動かなくてはまってます org >>178 TermuxはAndroidの環境上で動くけど、termuxarchとかはchrootとかじゃなかった? だからライブラリパスとか違っててそのroot環境上じゃないと動かないと思う。 逆に依存関係のファイル全て見えれば同じaarch64なんだし動かない事は無いかと。 それをすり合わせるのは面倒だからTermux上でbuildが一番手っ取り早いんじゃないかなー(超無責任 話すこしずれるけど termux-chrootしなくても #!/bin/bash のシェバンでいいみたいね termuxach設定済み、前提です 途中、間違ってたら、ごめん nightmareつかうと駄目、直接、phantomjsは動作ok # phantomjs + nightmare ## install pkg install nodejs ## install nightmare mkdir test-phantomjs && cd test-phantomjs npm init npm install nightmare@1.8.2 --save --ignore-scripts npm install cross-spawn --save ## install phantomjs wget https://github.com/fg2it/phantomjs-on-raspberry/releases/download/v2.1.1-jessie-stretch-arm64/phantomjs_2.1.1_arm64.tgz tar xvf phantomjs_2.1.1_arm64.tgz -C phantomjs_2.1.1_arm64 mv phantomjs phantomjs.bin cat << EOF >./../phantomjs_2.1.1_arm64/phantomjs #!/data/data/com.termux/files/usr/bin/sh exec /data/data/com.termux/files/home/arch/startarch -c /data/data/com.termux/files/home/phantomjs_2.1.1_arm64/phantomjs.bin "$@" EOF ## install fontconfig in termuxarch /data/data/com.termux/files/home/arch/startarch -c 'pacman -S fontconfig' 上の環境で実行すると、痛いエラーがw ここで断念 org % cat << EOF > example.js var Nightmare = require('nightmare'); new Nightmare({ show: false, phantomPath: __dirname }) .goto('https://www.yahoo.com' ) .type('input[title="Search"]', 'github nightmare') .click('.searchsubmit') .screenshot('yahoo.png') .run(); EOF % node ./example.js phantom stdout: phantom stderr: proot warning: phantom stderr: can't sanitize binding "/proc/self/fd/1": No such file or directory proot warning: can't sanitize binding "/proc/self/fd/2": No such file or directory phantom stdout: NETWORK_ERR: XMLHttpRequest Exception 101: A network error occurred in synchronous requests. phantom stdout: phantomjs://code/shim.js:1815 in send phantom stdout: phantomjs://code/shim.js:1815 in _start phantom stdout: phantomjs://code/shim.js:1842 下記のページがにている気がする https://github.com/sdrausty/TermuxArch/issues/38 cat << EOF >./../phantomjs_2.1.1_arm64/phantomjs #!/data/data/com.termux/files/usr/bin/sh exec 4>&1 5>&2 1>&- 2>&- # fd /data/data/com.termux/files/home/arch/startarch -c /data/data/com.termux/files/home/phantomjs_2.1.1_arm64/phantomjs.bin "$@" exec 1>&4 2>&5 4>&- 5>&- EOF node ./example.js あ、途中で投稿されてしまった phantomjsを起動するシェルで、fdの先を変えてみた (今、実態をphantomjs.bin、これを、phantomjsから叩いてる、直接叩くとエラる) エラーは消えて正常に実行できたように見えるけど、何も出力されない、キャプチャも 駄目かな、このやり方 あ、phantomjsのversion関係ありそうですね あげるか下げるかしてみます >>181 今、理解しました、なるほど、proot必要ないw ありがとう 原因はこれみたい。さてどうしたものか /data/data/com.termux/files/home/test-nightmare-ph/../phantomjs_2.1.1_arm64/phantomjs / --load-images=true --ignore-ssl-errors=true --ssl-protocol=any --web-security=true /data/data/com.termux/files/home/test-nightmare-ph/node_modules/phantom/shim.js 13201 127.0.0.1 NETWORK_ERR: XMLHttpRequest Exception 101: A network error occurred in synchronous requests. phantomjs://code/shim.js:1815 in send phantomjs://code/shim.js:1815 in _start phantomjs://code/shim.js:1842 proot info: vpid 1: terminated with signal 2 >>189 使ったことないけど、タスクの実行ができる? 環境の構築が楽しいんであって本当に使うかどうかは二の次なところが正直ある 株の保有銘柄と売買記録、nanacoギフトの自動買い Linux Deployで動かしてるdebianへのJuiceSSH代わり ・定番の環境構築遊び(暇つぶし) ・プログラムの移植(暇つぶし) ・ソフトウェアキーボードのみで自分が使う新規のプログラムを書く(気分転換) ほぼ、メモ・ブログ更新用。vim専用っぽくなってる。 Taskerで毎朝7z圧縮バックアップするシェルスクリプト流す Dwarf Fortressは動かんよな。 intel入ってるやつなら動く? termux-widgetでスクリプト実行後にtermuxウィンドウアプリを自動クローズする方法あったら教えてー execで起動させて終了時にプロセスがなくなっても効果なし? >>204 効果なしでした Widgetの仕様ぽいので諦めます アドバイスありがとです かつて、モバイルギアにpocketbsd入れて、Nemacsで、日記とか友達へのネタメールを打ち込んで楽しんでた身としては、Termuxのお陰で、(ちょっとキーバインド変わるけど)自スマホと折り畳みBluetoothキーボードの組み合わせで再現出来て、感無量。 オマケにSKKとgoogle音声入力とgoogle IMEが併用出来るって…最強ぢゃないですか! ありがとう、Termux! どっかにTermux上で動く、日本語版のアングバンドないですかねぇ…。 >>207 と思ったらGooglePlay版のみかも 超初心者なんですが、termux-sudoがインストールできません、Bhai4You/Termux-Sudoを使ってみたんですが、 その後のcd termux-sudoで反応なしです Bhai4You/Termux-Sudo見てみたけどなんであんな書き方してんの? 意味がわからん ちなみに中身これしてるだけ apt update apt upgrade apt install git -y cd $HOME mkdir sudo cd sudo git clone https://github.com/st42/termux-sudo cd termux-sudo pkg install ncurses-utils cat sudo > /data/data/com.termux/files/usr/bin/sudo chmod 700 /data/data/com.termux/files/usr/bin/sudo cd $HOME clear sudo $ cd $HOME $ mkdir sudo mkdir: can't create directory 'sudo': File exists この辺ですでに間違えてるみたい ■ このスレッドは過去ログ倉庫に格納されています
read.cgi ver 07.5.5 2024/06/08 Walang Kapalit ★ | Donguri System Team 5ちゃんねる