Installation Error #50

Closed
opened 2023-04-20 18:13:21 +00:00 by netkas · 1 comment
netkas commented 2023-04-20 18:13:21 +00:00 (Migrated from git-old.n64.cc)

There's a bug where ncc attempts to write to a directory that doesn't exist which results in the installer failing, a work-around is to run sudo mkdir /usr/share/php before running the installation, which will result in a successful installation.

sudo ./INSTALL --auto --install-composer

# ------------------------------------------------------------------
# Nosial Code Compiler (NCC) Installation Script
#
#          Nosial Code Compiler is a program written in PHP designed
#          to be a multipurpose compiler, package manager and toolkit.
#
# Dependency:
#     PHP 8.0+
# ------------------------------------------------------------------

Running checksum
Checksum passed
Checking installed extensions...
zlib ... installed
libxml ... installed
curl ... installed
ctype ... installed
json ... installed
mbstring ... installed
posix ... installed
tokenizer ... installed
Started NCC installer
NCC Version: 1.0.2 (stable)
Build Flags: 
defuse/php-encryption Version: 2.3.1
jelix/version Version: 2.0.1
nikic/PhpParser Version: 4.15.1
Symfony/polyfill-ctype Version: 1.27.0
Symfony/polyfill-mbstring Version: 1.27.0
Symfony/polyfill-uuid Version: 1.27.0
Symfony/Process Version: 6.2.5
Symfony/Uid Version: 6.2.5
Symfony/Filesystem Version: 6.2.5
Symfony/Yaml Version: 6.2.5
theseer/Autoload Version: 1.27.1
theseer/DirectoryScanner Version: 1.3.3
Starting installation
Installing composer for NCC
Running composer installer
All settings correct for using Composer
Downloading...

Composer (version 2.5.5) successfully installed to: /etc/ncc/composer.phar
Use it: php /etc/ncc/composer.phar

Installed composer successfully
Copying files to '/etc/ncc'
[ ======================================= ] 100%  774/774 remaining:  0 sec.  elapsed: 0 sec.  
Creating shortcut
Registering extension

Error: Attempted to write data to a directory instead of a file: (/usr/share/php/ncc)

===== Exception Details =====
/home/netkas/PhpstormProjects/ncc/build/src/Utilities/IO.php:49 Error: Attempted to write data to a directory instead of a file: (/usr/share/php/ncc)
Exception: ncc\Exceptions\IOException
Error code: -1735
Stack Trace:
 - /home/netkas/PhpstormProjects/ncc/build/src/INSTALL:669
 - /home/netkas/PhpstormProjects/ncc/build/src/INSTALL:716
You can pass on '--dbg-ex' option to dump the exception details to a json file

There's a bug where ncc attempts to write to a directory that doesn't exist which results in the installer failing, a work-around is to run `sudo mkdir /usr/share/php` before running the installation, which will result in a successful installation. ``` sudo ./INSTALL --auto --install-composer # ------------------------------------------------------------------ # Nosial Code Compiler (NCC) Installation Script # # Nosial Code Compiler is a program written in PHP designed # to be a multipurpose compiler, package manager and toolkit. # # Dependency: # PHP 8.0+ # ------------------------------------------------------------------ Running checksum Checksum passed Checking installed extensions... zlib ... installed libxml ... installed curl ... installed ctype ... installed json ... installed mbstring ... installed posix ... installed tokenizer ... installed Started NCC installer NCC Version: 1.0.2 (stable) Build Flags: defuse/php-encryption Version: 2.3.1 jelix/version Version: 2.0.1 nikic/PhpParser Version: 4.15.1 Symfony/polyfill-ctype Version: 1.27.0 Symfony/polyfill-mbstring Version: 1.27.0 Symfony/polyfill-uuid Version: 1.27.0 Symfony/Process Version: 6.2.5 Symfony/Uid Version: 6.2.5 Symfony/Filesystem Version: 6.2.5 Symfony/Yaml Version: 6.2.5 theseer/Autoload Version: 1.27.1 theseer/DirectoryScanner Version: 1.3.3 Starting installation Installing composer for NCC Running composer installer All settings correct for using Composer Downloading... Composer (version 2.5.5) successfully installed to: /etc/ncc/composer.phar Use it: php /etc/ncc/composer.phar Installed composer successfully Copying files to '/etc/ncc' [ ======================================= ] 100% 774/774 remaining: 0 sec. elapsed: 0 sec. Creating shortcut Registering extension Error: Attempted to write data to a directory instead of a file: (/usr/share/php/ncc) ===== Exception Details ===== /home/netkas/PhpstormProjects/ncc/build/src/Utilities/IO.php:49 Error: Attempted to write data to a directory instead of a file: (/usr/share/php/ncc) Exception: ncc\Exceptions\IOException Error code: -1735 Stack Trace: - /home/netkas/PhpstormProjects/ncc/build/src/INSTALL:669 - /home/netkas/PhpstormProjects/ncc/build/src/INSTALL:716 You can pass on '--dbg-ex' option to dump the exception details to a json file ```
netkas commented 2023-04-20 18:13:22 +00:00 (Migrated from git-old.n64.cc)

assigned to @netkas

assigned to @netkas
netkas (Migrated from git-old.n64.cc) closed this issue 2023-10-10 23:50:00 +00:00
Sign in to join this conversation.
No description provided.