Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] ...unable to install #1

Closed
whittinghamj opened this issue Nov 20, 2020 · 2 comments
Closed

[BUG] ...unable to install #1

whittinghamj opened this issue Nov 20, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@whittinghamj
Copy link

Describe the bug
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Warning from https://packagist.org: You are using an outdated version of Composer. Composer 2.0 is now available and you should upgrade. See https://getcomposer.org/2
Using version ^1.2 for skrtdev/novagram
./composer.json has been updated
Root package 'skrtdev/novagram' cannot require itself in its composer.json
Did you accidentally name your root package after an external package?

To Reproduce
composer require skrtdev/novagram

Expected behavior
for the installer to work

Full Traceback
root@bots /var/www/html # git clone https://github.com/skrtdev/NovaGram.git
Cloning into 'NovaGram'...
remote: Enumerating objects: 468, done.
remote: Counting objects: 100% (468/468), done.
remote: Compressing objects: 100% (330/330), done.
remote: Total 2039 (delta 229), reused 338 (delta 135), pack-reused 1571
Receiving objects: 100% (2039/2039), 417.34 KiB | 1.40 MiB/s, done.
Resolving deltas: 100% (1269/1269), done.
root@bots /var/www/html # mv NovaGram/ novagram
root@bots /var/www/html # cd novagram
root@bots /var/www/html/novagram # apt install composer
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
grub-pc-bin
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
jsonlint php-cli-prompt php-composer-ca-bundle php-composer-semver php-composer-spdx-licenses php-json-schema php-psr-log
php-symfony-console php-symfony-debug php-symfony-filesystem php-symfony-finder php-symfony-polyfill-mbstring php-symfony-process
Suggested packages:
fossil mercurial subversion php-zip php-symfony-event-dispatcher php-symfony-lock php-mbstring
The following NEW packages will be installed:
composer jsonlint php-cli-prompt php-composer-ca-bundle php-composer-semver php-composer-spdx-licenses php-json-schema php-psr-log
php-symfony-console php-symfony-debug php-symfony-filesystem php-symfony-finder php-symfony-polyfill-mbstring php-symfony-process
0 upgraded, 14 newly installed, 0 to remove and 59 not upgraded.
Need to get 586 kB of archives.
After this operation, 3482 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirrors.digitalocean.com/ubuntu bionic/universe amd64 php-json-schema all 5.2.6-1 [32.5 kB]
Get:2 http://mirrors.digitalocean.com/ubuntu bionic/universe amd64 php-composer-ca-bundle all 1.1.0-1 [13.7 kB]
Get:3 http://mirrors.digitalocean.com/ubuntu bionic/universe amd64 php-composer-semver all 1.4.2-1 [10.6 kB]
Get:4 http://mirrors.digitalocean.com/ubuntu bionic/universe amd64 php-composer-spdx-licenses all 1.3.0-1 [10.4 kB]
Get:5 http://mirrors.digitalocean.com/ubuntu bionic/universe amd64 jsonlint all 1.7.1-1 [11.2 kB]
Get:6 http://mirrors.digitalocean.com/ubuntu bionic/universe amd64 php-symfony-polyfill-mbstring all 1.6.0-2 [12.1 kB]
Get:7 http://mirrors.digitalocean.com/ubuntu bionic/universe amd64 php-psr-log all 1.0.2-1 [6976 B]
Get:8 http://mirrors.digitalocean.com/ubuntu bionic-updates/universe amd64 php-symfony-debug all 3.4.6+dfsg-1ubuntu0.1 [36.4 kB]
Get:9 http://mirrors.digitalocean.com/ubuntu bionic-updates/universe amd64 php-symfony-console all 3.4.6+dfsg-1ubuntu0.1 [65.6 kB]
Get:10 http://mirrors.digitalocean.com/ubuntu bionic-updates/universe amd64 php-symfony-finder all 3.4.6+dfsg-1ubuntu0.1 [21.9 kB]
Get:11 http://mirrors.digitalocean.com/ubuntu bionic-updates/universe amd64 php-symfony-process all 3.4.6+dfsg-1ubuntu0.1 [28.8 kB]
Get:12 http://mirrors.digitalocean.com/ubuntu bionic-updates/universe amd64 php-symfony-filesystem all 3.4.6+dfsg-1ubuntu0.1 [18.7 kB]
Get:13 http://mirrors.digitalocean.com/ubuntu bionic/universe amd64 php-cli-prompt all 1.0.3+dfsg-1 [4620 B]
Get:14 http://mirrors.digitalocean.com/ubuntu bionic/universe amd64 composer all 1.6.3-1 [313 kB]
Fetched 586 kB in 1s (1120 kB/s)
Selecting previously unselected package php-json-schema.
(Reading database ... 61558 files and directories currently installed.)
Preparing to unpack .../00-php-json-schema_5.2.6-1_all.deb ...
Unpacking php-json-schema (5.2.6-1) ...
Selecting previously unselected package php-composer-ca-bundle.
Preparing to unpack .../01-php-composer-ca-bundle_1.1.0-1_all.deb ...
Unpacking php-composer-ca-bundle (1.1.0-1) ...
Selecting previously unselected package php-composer-semver.
Preparing to unpack .../02-php-composer-semver_1.4.2-1_all.deb ...
Unpacking php-composer-semver (1.4.2-1) ...
Selecting previously unselected package php-composer-spdx-licenses.
Preparing to unpack .../03-php-composer-spdx-licenses_1.3.0-1_all.deb ...
Unpacking php-composer-spdx-licenses (1.3.0-1) ...
Selecting previously unselected package jsonlint.
Preparing to unpack .../04-jsonlint_1.7.1-1_all.deb ...
Unpacking jsonlint (1.7.1-1) ...
Selecting previously unselected package php-symfony-polyfill-mbstring.
Preparing to unpack .../05-php-symfony-polyfill-mbstring_1.6.0-2_all.deb ...
Unpacking php-symfony-polyfill-mbstring (1.6.0-2) ...
Selecting previously unselected package php-psr-log.
Preparing to unpack .../06-php-psr-log_1.0.2-1_all.deb ...
Unpacking php-psr-log (1.0.2-1) ...
Selecting previously unselected package php-symfony-debug.
Preparing to unpack .../07-php-symfony-debug_3.4.6+dfsg-1ubuntu0.1_all.deb ...
Unpacking php-symfony-debug (3.4.6+dfsg-1ubuntu0.1) ...
Selecting previously unselected package php-symfony-console.
Preparing to unpack .../08-php-symfony-console_3.4.6+dfsg-1ubuntu0.1_all.deb ...
Unpacking php-symfony-console (3.4.6+dfsg-1ubuntu0.1) ...
Selecting previously unselected package php-symfony-finder.
Preparing to unpack .../09-php-symfony-finder_3.4.6+dfsg-1ubuntu0.1_all.deb ...
Unpacking php-symfony-finder (3.4.6+dfsg-1ubuntu0.1) ...
Selecting previously unselected package php-symfony-process.
Preparing to unpack .../10-php-symfony-process_3.4.6+dfsg-1ubuntu0.1_all.deb ...
Unpacking php-symfony-process (3.4.6+dfsg-1ubuntu0.1) ...
Selecting previously unselected package php-symfony-filesystem.
Preparing to unpack .../11-php-symfony-filesystem_3.4.6+dfsg-1ubuntu0.1_all.deb ...
Unpacking php-symfony-filesystem (3.4.6+dfsg-1ubuntu0.1) ...
Selecting previously unselected package php-cli-prompt.
Preparing to unpack .../12-php-cli-prompt_1.0.3+dfsg-1_all.deb ...
Unpacking php-cli-prompt (1.0.3+dfsg-1) ...
Selecting previously unselected package composer.
Preparing to unpack .../13-composer_1.6.3-1_all.deb ...
Unpacking composer (1.6.3-1) ...
Setting up php-psr-log (1.0.2-1) ...
Setting up php-symfony-finder (3.4.6+dfsg-1ubuntu0.1) ...
Setting up php-composer-ca-bundle (1.1.0-1) ...
Setting up php-json-schema (5.2.6-1) ...
Setting up php-composer-semver (1.4.2-1) ...
Setting up php-cli-prompt (1.0.3+dfsg-1) ...
Setting up php-composer-spdx-licenses (1.3.0-1) ...
Setting up php-symfony-filesystem (3.4.6+dfsg-1ubuntu0.1) ...
Setting up php-symfony-polyfill-mbstring (1.6.0-2) ...
Setting up jsonlint (1.7.1-1) ...
Setting up php-symfony-process (3.4.6+dfsg-1ubuntu0.1) ...
Setting up php-symfony-debug (3.4.6+dfsg-1ubuntu0.1) ...
Setting up php-symfony-console (3.4.6+dfsg-1ubuntu0.1) ...
Setting up composer (1.6.3-1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
root@bots /var/www/html/novagram # composer require skrtdev/novagram
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Warning from https://packagist.org: You are using an outdated version of Composer. Composer 2.0 is now available and you should upgrade. See https://getcomposer.org/2
Using version ^1.2 for skrtdev/novagram
./composer.json has been updated
Root package 'skrtdev/novagram' cannot require itself in its composer.json
Did you accidentally name your root package after an external package?

Additional context
failed to install / build on ubuntu 18

@whittinghamj whittinghamj added the bug Something isn't working label Nov 20, 2020
@skrtdev
Copy link
Owner

skrtdev commented Nov 21, 2020

You named your project skrtdev/novagram, just edit your composer.json and set a different name for your project, e.g. myname/mybot

@skrtdev
Copy link
Owner

skrtdev commented Nov 21, 2020

Also, you cloned the repository, this is not the way to install it. In order to use it, just create a folder for your bot, create a file named bot.php, paste one of the examples in that file, and do
composer require skrtdev/novagram

@skrtdev skrtdev closed this as completed Nov 23, 2020
@NZ62AN NZ62AN mentioned this issue Aug 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants