zedeus / nitter

Alternative Twitter front-end
https://nitter.net
GNU Affero General Public License v3.0
10.12k stars 535 forks source link

Unable to run nimble scss #1184

Closed ritikkumarsahu closed 8 months ago

ritikkumarsahu commented 8 months ago

System: Centos 7 I am following these commands but after running $ nimble scss it fails... $ git clone https://github.com/zedeus/nitter $ cd nitter $ nimble build -d:release

Error: [root@localhost nitter]# nimble scss Verifying dependencies for nitter@0.1.0 Info: Dependency on jester@#baca3f already satisfied Verifying dependencies for jester@0.5.0 Info: Dependency on httpbeast@>= 0.3.0 already satisfied Verifying dependencies for httpbeast@0.4.1 Info: Dependency on asynctools@#0e6bdc3ed5bae8c7cc9 already satisfied Verifying dependencies for asynctools@0.1.1 Info: Dependency on https://github.com/timotheecour/asynctools@#pr_fix_compilation already satisfied Verifying dependencies for asynctools@0.1.1 Info: Dependency on karax@#5cf360c already satisfied Warning: Package 'karax' has an incorrect structure. It should contain a single directory hierarchy for source files, named 'karax', but file 'ajax.nim' is in a directory named 'examples/ajax' instead. This will be an error in the future. Hint: If 'examples/ajax' contains source files for building 'karax', rename it to 'karax'. Otherwise, prevent its installation by adding skipDirs = @["examples/ajax"] to the .nimble file. Verifying dependencies for karax@1.3.0 Info: Dependency on ws@any version already satisfied Verifying dependencies for ws@0.5.0 Info: Dependency on dotenv@>= 2.0.0 already satisfied Verifying dependencies for dotenv@2.0.1 Info: Dependency on sass@#7dfdd03 already satisfied Verifying dependencies for sass@0.3.0 Info: Dependency on nimcrypto@#4014ef9 already satisfied Verifying dependencies for nimcrypto@0.5.4 Info: Dependency on markdown@#158efe3 already satisfied Verifying dependencies for markdown@0.8.6 Info: Dependency on packedjson@#9e6fbb6 already satisfied Verifying dependencies for packedjson@0.2.2 Info: Dependency on supersnappy@#6c94198 already satisfied Verifying dependencies for supersnappy@2.1.3 Info: Dependency on redpool@#8b7c1db already satisfied Verifying dependencies for redpool@0.1.0 Info: Dependency on https://github.com/zedeus/redis@#d0a0e6f already satisfied Verifying dependencies for redis@0.3.0 Info: Dependency on https://github.com/zedeus/redis@#d0a0e6f already satisfied Verifying dependencies for redis@0.3.0 Info: Dependency on zippy@#ca5989a already satisfied Verifying dependencies for zippy@0.10.7 Info: Dependency on flatty@#e668085 already satisfied Verifying dependencies for flatty@0.3.4 Info: Dependency on jsony@#ea811be already satisfied Verifying dependencies for jsony@1.1.5 Executing task scss in /home/ritik/nitter/nitter.nimble Verifying dependencies for nitter@0.1.0 Info: Dependency on jester@#baca3f already satisfied Verifying dependencies for jester@0.5.0 Info: Dependency on httpbeast@>= 0.3.0 already satisfied Verifying dependencies for httpbeast@0.4.1 Info: Dependency on asynctools@#0e6bdc3ed5bae8c7cc9 already satisfied Verifying dependencies for asynctools@0.1.1 Info: Dependency on https://github.com/timotheecour/asynctools@#pr_fix_compilation already satisfied Verifying dependencies for asynctools@0.1.1 Info: Dependency on karax@#5cf360c already satisfied Verifying dependencies for karax@1.3.0 Info: Dependency on ws@any version already satisfied Verifying dependencies for ws@0.5.0 Info: Dependency on dotenv@>= 2.0.0 already satisfied Verifying dependencies for dotenv@2.0.1 Info: Dependency on sass@#7dfdd03 already satisfied Verifying dependencies for sass@0.3.0 Info: Dependency on nimcrypto@#4014ef9 already satisfied Verifying dependencies for nimcrypto@0.5.4 Info: Dependency on markdown@#158efe3 already satisfied Verifying dependencies for markdown@0.8.6 Info: Dependency on packedjson@#9e6fbb6 already satisfied Verifying dependencies for packedjson@0.2.2 Info: Dependency on supersnappy@#6c94198 already satisfied Verifying dependencies for supersnappy@2.1.3 Info: Dependency on redpool@#8b7c1db already satisfied Verifying dependencies for redpool@0.1.0 Info: Dependency on https://github.com/zedeus/redis@#d0a0e6f already satisfied Verifying dependencies for redis@0.3.0 Info: Dependency on https://github.com/zedeus/redis@#d0a0e6f already satisfied Verifying dependencies for redis@0.3.0 Info: Dependency on zippy@#ca5989a already satisfied Verifying dependencies for zippy@0.10.7 Info: Dependency on flatty@#e668085 already satisfied Verifying dependencies for flatty@0.3.4 Info: Dependency on jsony@#ea811be already satisfied Verifying dependencies for jsony@1.1.5 Compiling tools/gencss (from package nitter) using c backend could not load: libsass.so (compile with -d:nimDebugDlOpen for more information) Error: execution of an external program failed: '/home/ritik/nitter/tools/gencss' Tip: 38 messages have been suppressed, use --verbose to show them. tools.nim(36) doCmd

Error:  Execution failed with exit code 1
    ... Command: /root/.nimble/bin/nim c --noNimblePath -d:NimblePkgVersion=0.1.0 --path:/root/.nimble/pkgs2/redis-0.3.0-9b1a45983890db1f1775ecddc51925000d183c57 --path:/root/.nimble/pkgs2/dotenv-2.0.1-9a9e39544f129e6666935796610da79fbe724510 --path:/root/.nimble/pkgs2/httpbeast-0.4.1-b23e57a401057dcb9b7fae1fb8279a6a2ce1d0b8 --path:/root/.nimble/pkgs2/asynctools-0.1.1-5e7df4178ee5c148532ff8c44a22015d576624d8 --path:/root/.nimble/pkgs2/zippy-0.10.7-8ec66d2af90ca93f96c0388ae933f03a60ff67d1 --path:/root/.nimble/pkgs2/sass-0.3.0-21e4dcb1ab3d32d343df1d8293affa9ea9c92f70 --path:/root/.nimble/pkgs2/ws-0.5.0-ae4daf4ae302d0431f3c2d385ae9d2fe767a3246 --path:/root/.nimble/pkgs2/flatty-0.3.4-48109ac5d2f65f9d1a61f5077ba0eb61d104a90a --path:/root/.nimble/pkgs2/jsony-1.1.5-6aeb83e7481ca8686396a568096054bc668294df --path:/root/.nimble/pkgs2/packedjson-0.2.2-8aec1ecc233e2ac4d04f0a3dd02d03c73d7b4665 --path:/root/.nimble/pkgs2/redpool-0.1.0-3d2665fc592c25cbe5d253957bc16e9666227c3d --path:/root/.nimble/pkgs2/jester-0.5.0-afb591b0a6cd39f4d5f2195bffb7095640e3da97 --path:/root/.nimble/pkgs2/nimcrypto-0.5.4-6e0f5178a608ecf7bb046fd0179bf78662fcff16 --path:/root/.nimble/pkgs2/asynctools-0.1.1-54314dceabb06b20908ecb0f2c007e9ff3aaa054 --path:/root/.nimble/pkgs2/supersnappy-2.1.3-a197de45773703f7134301043e416fb5025c614d --path:/root/.nimble/pkgs2/karax-1.3.0-481742b3d0c0e3c92174b1bdd08a4a94853250af --path:/root/.nimble/pkgs2/markdown-0.8.6-53b43fa57e6aa106e634ae97b793f1c6e7da7ce6 --hints:off '--hint[Processing]:off' -d:danger -r tools/gencss 

stack trace: (most recent call last) /tmp/nimblecache-2440999355/nimscriptapi_1540420048.nim(210, 16) /home/ritik/nitter/nitter.nimble(31, 3) scssTask /root/.choosenim/toolchains/nim-2.0.2/lib/system/nimscript.nim(265, 7) exec /root/.choosenim/toolchains/nim-2.0.2/lib/system/nimscript.nim(265, 7) Error: unhandled exception: FAILED: nimble c --hint[Processing]:off -d:danger -r tools/gencss [OSError] Tip: 37 messages have been suppressed, use --verbose to show them. nimscriptwrapper.nim(160) execScript

Error:  Exception raised during nimble script execution

[root@localhost nitter]# snap install sassc snap "sassc" is already installed, see 'snap help refresh' [root@localhost nitter]# yum install -y libsass Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile

ritikkumarsahu commented 8 months ago

installing libsass-devel solved the issue. sudo yum -y install libsass-devel