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 859525
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T08:41:31+00:00 2026-05-15T08:41:31+00:00

I tried googling for this issue and found many people with the same problem

  • 0

I tried googling for this issue and found many people with the same problem but no solution.

    $result = exec("C:\\Ruby191\\bin\\lessc.bat less\\$file", $output);

Here result is an empty string and output an empty array. Same thing with:

    $result = exec("cmd /c C:\\Ruby191\\bin\\lessc.bat less\\$file", $output);

I am sure the path is correct; I am sure exec() is enabled.

I tried exec, shell_exec, system and none work.

lessc is less CSS.


EDIT

The apache error log says:

‘”ruby.exe”‘ is not recognized as an
internal or external command, operable
program or batch file.

  • 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-05-15T08:41:32+00:00Added an answer on May 15, 2026 at 8:41 am

    I found out the problem; I installed ruby just for this and added it to my PATH environment variable, and it started working immediately for command prompts.

    However it didn’t work for PHP, so I decided to restart my computer. After that it worked.

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

Sidebar

Related Questions

I have tried googling and searching for this issue on SO - but have
I guess the topic says it. I have tried googling this, but havent gotten
I tried googling the answer, but all I found was tips on how to
I have been googling/SO:ing this issue for a while and many seem to be
I've tried Googling this, and there are so many answers based on various specific
I'm more or less a beginner with web services but I've tried googling this
Update III: After googling around I've found that this is not an uncommon problem.
Does anyone know what is := for? I tried googling but it seems google
The naïve FOO = empty_clob() complains about incompatible types. I tried Googling, but (once
Pretty much what it says on the tin. I've tried googling around but can't

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.