Ruby: bundle not working with rbenv (path name contains null byte (ArgumentError)Invalid date format specification in gemspecruby - heroku: command not foundBundle says gem is missing - but it's not?where are my gems installed with rbenv?Issues installing ActiveTcl with rbenvEvery chef commands gets error (Mac OS X)capistrano regenerating wrappers errorCould not find public_suffix-2.0.4 in any of the sourcesBundle not working with rbenv and cannot gem install bundlerRails: “bundle install” failed because of old rails version(3.2)

Can more than one instance of Bend Luck be applied to the same roll by multiple Wild Magic sorcerers?

Is my company merging branches wrong?

Are there any crystals that are theoretically possible, but haven't yet been made?

Working hours and productivity expectations for game artists and programmers

Why do academics prefer Mac/Linux?

What is the probability that two cards drawn from a deck are both face cards and at least one is red?

Failing students when it might cause them economic ruin

how to create an executable file for an AppleScript?

Does a windmilling propeller create more drag than a stopped propeller in an engine out scenario

How can I monitor the bulk API limit?

Why does Taylor’s series “work”?

Why is Drogon so much better in battle than Rhaegal and Viserion?

Does the usage of mathematical symbols work differently in books than in theses?

Prints each letter of a string in different colors

Who is frowning in the sentence "Daisy looked at Tom frowning"?

What's is the easiest way to purchase a stock and hold it

How to customize the pie chart background in PowerPoint?

How come Arya Stark wasn't hurt by this in Game of Thrones Season 8 Episode 5?

Cycling to work - 30mile return

I recently started my machine learning PhD and I have absolutely no idea what I'm doing

How can sister protect herself from impulse purchases with a credit card?

How did Arya not get burned in S8E05, "The Bells"?

Is there any deeper thematic meaning to the white horse that Arya finds in The Bells (S08E05)?

Why didn't Daenerys' advisers suggest assassinating Cersei?



Ruby: bundle not working with rbenv (path name contains null byte (ArgumentError)


Invalid date format specification in gemspecruby - heroku: command not foundBundle says gem is missing - but it's not?where are my gems installed with rbenv?Issues installing ActiveTcl with rbenvEvery chef commands gets error (Mac OS X)capistrano regenerating wrappers errorCould not find public_suffix-2.0.4 in any of the sourcesBundle not working with rbenv and cannot gem install bundlerRails: “bundle install” failed because of old rails version(3.2)






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








1















I have created a RubyGem and today, I was going to update the dependencies, but now after I go to the gem's directory and type bundle install I get this error, whose last line is:



/Users/myuser/.rbenv/versions/2.6.2/lib/ruby/2.6.0/rubygems/specification.rb:2663:in `directory?': path name contains null byte (ArgumentError)



I have reinstalled bundler, updated the system gem, etc., but nothing seems to be working. How can I avoid this?



Thanks a lot in advance!










share|improve this question






















  • are you sure you on the correct ruby version in the root path of your gem? Can you show the output of gem env

    – lacostenycoder
    Mar 24 at 1:43











  • I have - RUBY VERSION: 2.6.2 (2019-03-13 patchlevel 47) [x86_64-darwin18] - INSTALLATION DIRECTORY: /Users/myuser/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0 - USER INSTALLATION DIRECTORY: /Users/myuser/.gem/ruby/2.6.0 could that be the problem? how could I change it?

    – noloman
    Mar 24 at 18:28

















1















I have created a RubyGem and today, I was going to update the dependencies, but now after I go to the gem's directory and type bundle install I get this error, whose last line is:



/Users/myuser/.rbenv/versions/2.6.2/lib/ruby/2.6.0/rubygems/specification.rb:2663:in `directory?': path name contains null byte (ArgumentError)



I have reinstalled bundler, updated the system gem, etc., but nothing seems to be working. How can I avoid this?



Thanks a lot in advance!










share|improve this question






















  • are you sure you on the correct ruby version in the root path of your gem? Can you show the output of gem env

    – lacostenycoder
    Mar 24 at 1:43











  • I have - RUBY VERSION: 2.6.2 (2019-03-13 patchlevel 47) [x86_64-darwin18] - INSTALLATION DIRECTORY: /Users/myuser/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0 - USER INSTALLATION DIRECTORY: /Users/myuser/.gem/ruby/2.6.0 could that be the problem? how could I change it?

    – noloman
    Mar 24 at 18:28













1












1








1








I have created a RubyGem and today, I was going to update the dependencies, but now after I go to the gem's directory and type bundle install I get this error, whose last line is:



/Users/myuser/.rbenv/versions/2.6.2/lib/ruby/2.6.0/rubygems/specification.rb:2663:in `directory?': path name contains null byte (ArgumentError)



I have reinstalled bundler, updated the system gem, etc., but nothing seems to be working. How can I avoid this?



Thanks a lot in advance!










share|improve this question














I have created a RubyGem and today, I was going to update the dependencies, but now after I go to the gem's directory and type bundle install I get this error, whose last line is:



/Users/myuser/.rbenv/versions/2.6.2/lib/ruby/2.6.0/rubygems/specification.rb:2663:in `directory?': path name contains null byte (ArgumentError)



I have reinstalled bundler, updated the system gem, etc., but nothing seems to be working. How can I avoid this?



Thanks a lot in advance!







ruby rubygems bundler rbenv






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 23 at 17:31









nolomannoloman

5,471136396




5,471136396












  • are you sure you on the correct ruby version in the root path of your gem? Can you show the output of gem env

    – lacostenycoder
    Mar 24 at 1:43











  • I have - RUBY VERSION: 2.6.2 (2019-03-13 patchlevel 47) [x86_64-darwin18] - INSTALLATION DIRECTORY: /Users/myuser/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0 - USER INSTALLATION DIRECTORY: /Users/myuser/.gem/ruby/2.6.0 could that be the problem? how could I change it?

    – noloman
    Mar 24 at 18:28

















  • are you sure you on the correct ruby version in the root path of your gem? Can you show the output of gem env

    – lacostenycoder
    Mar 24 at 1:43











  • I have - RUBY VERSION: 2.6.2 (2019-03-13 patchlevel 47) [x86_64-darwin18] - INSTALLATION DIRECTORY: /Users/myuser/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0 - USER INSTALLATION DIRECTORY: /Users/myuser/.gem/ruby/2.6.0 could that be the problem? how could I change it?

    – noloman
    Mar 24 at 18:28
















are you sure you on the correct ruby version in the root path of your gem? Can you show the output of gem env

– lacostenycoder
Mar 24 at 1:43





are you sure you on the correct ruby version in the root path of your gem? Can you show the output of gem env

– lacostenycoder
Mar 24 at 1:43













I have - RUBY VERSION: 2.6.2 (2019-03-13 patchlevel 47) [x86_64-darwin18] - INSTALLATION DIRECTORY: /Users/myuser/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0 - USER INSTALLATION DIRECTORY: /Users/myuser/.gem/ruby/2.6.0 could that be the problem? how could I change it?

– noloman
Mar 24 at 18:28





I have - RUBY VERSION: 2.6.2 (2019-03-13 patchlevel 47) [x86_64-darwin18] - INSTALLATION DIRECTORY: /Users/myuser/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0 - USER INSTALLATION DIRECTORY: /Users/myuser/.gem/ruby/2.6.0 could that be the problem? how could I change it?

– noloman
Mar 24 at 18:28












2 Answers
2






active

oldest

votes


















1














Check your gemspec file, in my case I replaced by mistake the double quotes with single quotes around the null character.



- `git ls-files -z`.split('x0').reject f
+ `git ls-files -z`.split("x0").reject f





share|improve this answer






























    0














    Go to the root of your project and run these commands



    rbenv global 2.6.2
    gem install bundler
    rbenv rehash
    bundle install





    share|improve this answer























    • the same error comes after doing bundle install

      – noloman
      Mar 25 at 21:34











    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55316513%2fruby-bundle-not-working-with-rbenv-path-name-contains-null-byte-argumenterror%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    Check your gemspec file, in my case I replaced by mistake the double quotes with single quotes around the null character.



    - `git ls-files -z`.split('x0').reject f
    + `git ls-files -z`.split("x0").reject f





    share|improve this answer



























      1














      Check your gemspec file, in my case I replaced by mistake the double quotes with single quotes around the null character.



      - `git ls-files -z`.split('x0').reject f
      + `git ls-files -z`.split("x0").reject f





      share|improve this answer

























        1












        1








        1







        Check your gemspec file, in my case I replaced by mistake the double quotes with single quotes around the null character.



        - `git ls-files -z`.split('x0').reject f
        + `git ls-files -z`.split("x0").reject f





        share|improve this answer













        Check your gemspec file, in my case I replaced by mistake the double quotes with single quotes around the null character.



        - `git ls-files -z`.split('x0').reject f
        + `git ls-files -z`.split("x0").reject f






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Apr 23 at 21:36









        csoriacsoria

        53847




        53847























            0














            Go to the root of your project and run these commands



            rbenv global 2.6.2
            gem install bundler
            rbenv rehash
            bundle install





            share|improve this answer























            • the same error comes after doing bundle install

              – noloman
              Mar 25 at 21:34















            0














            Go to the root of your project and run these commands



            rbenv global 2.6.2
            gem install bundler
            rbenv rehash
            bundle install





            share|improve this answer























            • the same error comes after doing bundle install

              – noloman
              Mar 25 at 21:34













            0












            0








            0







            Go to the root of your project and run these commands



            rbenv global 2.6.2
            gem install bundler
            rbenv rehash
            bundle install





            share|improve this answer













            Go to the root of your project and run these commands



            rbenv global 2.6.2
            gem install bundler
            rbenv rehash
            bundle install






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Mar 24 at 19:04









            lacostenycoderlacostenycoder

            4,94121431




            4,94121431












            • the same error comes after doing bundle install

              – noloman
              Mar 25 at 21:34

















            • the same error comes after doing bundle install

              – noloman
              Mar 25 at 21:34
















            the same error comes after doing bundle install

            – noloman
            Mar 25 at 21:34





            the same error comes after doing bundle install

            – noloman
            Mar 25 at 21:34

















            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55316513%2fruby-bundle-not-working-with-rbenv-path-name-contains-null-byte-argumenterror%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

            Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

            Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript