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

ERROR: While executing gem ... (OptionParser::InvalidOption) invalid option: --no-rdoc #24

Closed
IshaanAdarsh opened this issue Jul 4, 2023 · 2 comments

Comments

@IshaanAdarsh
Copy link
Owner

While running the command pgxn install pgxn_utils

Getting the error:

INFO: best version: pgxn_utils 0.1.4
INFO: saving /var/folders/kn/b8b9x9yn683cjfkl1xd9jjwh0000gn/T/tmpnb50s2nv/pgxn_utils-0.1.4.zip
INFO: unpacking: /var/folders/kn/b8b9x9yn683cjfkl1xd9jjwh0000gn/T/tmpnb50s2nv/pgxn_utils-0.1.4.zip
INFO: building extension
make: Nothing to be done for `all'.
INFO: installing extension
gem install --no-rdoc --no-ri ./pkg/pgxn_utils-0.1.4.gem
ERROR:  While executing gem ... (OptionParser::InvalidOption)
    invalid option: --no-rdoc
make: *** [install] Error 1
ERROR: command returned 2: make PG_CONFIG=/Users/spartacus/.pgenv/pgsql/bin/pg_config install

How to solve this?

@IshaanAdarsh
Copy link
Owner Author

@IshaanAdarsh
Copy link
Owner Author

Solution:
Upon investigation, it appears that the pgxn_utils package is still using the deprecated --no-rdoc and --no-ri options, which were removed from RubyGems 5 years ago in favor of the --no-document option.

Considering that these options were deprecated 12 years ago and removed 5 years ago, the usage of pgxn_utils is currently incompatible with newer versions of Ruby and RubyGems.

I would like to propose addressing this issue by updating the pgxn_utils package to use the current documentation options provided by RubyGems. This will ensure compatibility with the latest versions of Ruby and prevent installation failures.

Updating the package to use the --no-document option instead of the deprecated --no-rdoc and --no-ri options. This will allow users to successfully install pgxn_utils with the latest versions of RubyGems. I believe addressing this compatibility issue will greatly benefit users who wish to install and utilize the pgxn_utils package with the latest Ruby and RubyGems versions.

Opened Issue in extension pgxn_utlis -> guedes/pgxn-utils#52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant