Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8794773
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:17:49+00:00 2026-06-13T23:17:49+00:00

So I have my Ruby-on-rails app that i successfully released to heroku. However to

  • 0

So I have my Ruby-on-rails app that i successfully released to heroku. However to populate the database I have several perl scripts that basically sync up tables on local database with a remote database.

On my development machine (on ec2) it works fine but I also have a lot of stuff i have installed on it over time.

When I try to run my scripts I get the following error (latest perl is installed by the way)

Can't locate DBI.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at copyStaff.pl line 4.
BEGIN failed--compilation aborted at copyStaff.pl line 4.

How do I install DBI module for Perl on heroku?
I tried through bash

apt-get install libdbi-perl

This gave me an output of

W: Not using locking for read only lock file /var/lib/dpkg/lock
E: Unable to write to /var/cache/apt/
E: The package lists or status file could not be parsed or opened.

[This might be irrelevant]
I tried to run this command

dpkg --configure -a

But it told me it requires super user privileges

su -l root -c "dpkg --configure -a"
  • asked for root password and apparently I don’t know the password (it’s not the heroku login), no clue what it might be.

I also downloaded the file directly, but I need super user access. I also tried

$perl -MCPAN -e shell
cpan> install DBI

(this had same problem of not beng able to save the file)

I have a feeling i might be going at it completely the wrong way, but I can’t figure out what I need to do to run those scripts.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T23:17:50+00:00Added an answer on June 13, 2026 at 11:17 pm

    Well I got the answer from customer support, just pasting it here


    Unfortunately we don’t support installing additional libraries or binaries to our stacks. The best workaround is to vendor these into your project. You’ll need to use 64-bit Linux versions to make them work on Heroku; compiling statically can also help ensure that any dependencies needed are included. Similarly, for gems that depend on external libraries, we recommend compiling the gem statically and vendoring it into your project.

    If you do wish to try to vendor your binary, library, or gem, you can use Heroku as your build environment. One of our engineers created a build server that allows you to upload source code, run the compilation step, and then download the resulting binary. You can find this project here:
    https://github.com/heroku/vulcan

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a ruby on rails app that uses Heroku. I have the need
I have a Ruby on Rails app that I've recently deployed to a remote
I have a Ruby on Rails app that needs process many background jobs simultaneously:
I have a Ruby script in my Rails app that I use to load
I have a Ruby on Rails app running on Heroku. Is there an easy
I have a ruby on rails app that has a signup page. Different pages
Some of the users of our Ruby on Rails app have complained that page
I have a Ruby on Rails app that has a scheduled job I execute
I have a Ruby on Rails app that I'm working on and I'm having
I have a ruby on rails application, requirement for that app is as below.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.