Opened 7 years ago

Closed 7 years ago

#26403 closed defect (duplicate)

readline: Patch file readline61-001 is missing

Reported by: tedblackman@… Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: Cc: ryandesign (Ryan Schmidt)
Port: readline

Description

Hi, I've been following the instructions for setting up MAMP under the HOWTO section. I'm running a new 13-inch MacBook Pro with Snow Leopard. When I type the command "sudo port install apache2", it builds several of the dependencies until it hits readline. When it tries to apply patches to readline, it gives the following error:

Error: Target org.macports.patch returned: Patch file readline61-001 is missing

Earlier today I had tried installing this setup, and apache2 and mysql5 both succeeded and ran, but php5 got this same error. I looked at the tickets and uninstalled all of my installed ports. I also made sure Apple's built-in apache server was not running. After all of this, I ran the command to install the apache2 port starting from a clean slate, but still got the error.

I noticed that readline had its patchlevel changed to 002 a few days ago, and I couldn't find anything about it being changed to 001 previously. I don't know if that has anything to do with the problem, but I thought I would mention it in case it does.

I have attached the log file. Thanks in advance for your help!

-Ted Blackman

Attachments (1)

main.log (960 bytes) - added by tedblackman@… 7 years ago.
log file originally located at /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_readline/

Download all attachments as: .zip

Change History (10)

Changed 7 years ago by tedblackman@…

log file originally located at /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_readline/

comment:1 Changed 7 years ago by tedblackman@…

  • Cc tedblackman@… added

Cc Me!

comment:2 follow-up: Changed 7 years ago by ryandesign (Ryan Schmidt)

  • Cc ryandesign@… added; tedblackman@… removed
  • Owner changed from macports-tickets@… to mcalhoun@…
  • Port apache2 php5 removed
  • Summary changed from readline @6.1.002 patch failure to readline: Patch file readline61-001 is missing

readline works fine here. selfupdate, clean and try again?

sudo port selfupdate
sudo port clean readline
sudo port upgrade readline

comment:3 in reply to: ↑ 2 ; follow-up: Changed 7 years ago by tedblackman@…

I executed those commands. Macports said it was the latest version (I had run selfupdate earlier today, also). The clean readline command ran, although when I ran the upgrade command, I found out that readline is not installed on my machine. Maybe I should install the readline port before trying to install the apache2 port?

Replying to ryandesign@…:

readline works fine here. selfupdate, clean and try again?

sudo port selfupdate
sudo port clean readline
sudo port upgrade readline

comment:4 in reply to: ↑ 3 ; follow-up: Changed 7 years ago by tedblackman@…

I just tried "sudo port install readline" and got the same error.

Replying to tedblackman@…:

comment:5 in reply to: ↑ 4 ; follow-up: Changed 7 years ago by ryandesign (Ryan Schmidt)

Replying to tedblackman@…:

I executed those commands. Macports said it was the latest version (I had run selfupdate earlier today, also).

Note that what it said was that you had the latest version of MacPorts base, however it also updated your port definitions, which is what I was really after here. Port definitions are updated constantly; it's unusual for an hour to go by without someone committing an update for some port.

The clean readline command ran, although when I ran the upgrade command, I found out that readline is not installed on my machine.

Ok, then "sudo port install readline". I assumed you already had an earlier version of readline, since you said apache2 and mysql5 both succeeded in installing, and both of them declare direct or indirect dependencies on readline, meaning it is not possible for you to have installed apache2 or mysql5 without already having readline installed.

Maybe I should install the readline port before trying to install the apache2 port?

MacPorts manages dependencies for you; that's one of MacPorts' primary features. With "port rdeps" you can see that apache2 depends on apr-util depends on sqlite3 depends on readline. So if you ask MacPorts to install apache2, it will install readline for you first.

Replying to tedblackman@…:

I just tried "sudo port install readline" and got the same error.

Ok. What is the contents of the directory /opt/local/var/macports/distfiles/readline? If it does not contain the files readline-6.1.tar.gz, readline61-001 and readline61-002, try removing the distfiles and trying again:

sudo port clean --all readline
sudo port install readline

comment:6 in reply to: ↑ 5 Changed 7 years ago by tedblackman@…

Replying to ryandesign@…:

Replying to tedblackman@…:

I just tried "sudo port install readline" and got the same error.

Ok. What is the contents of the directory /opt/local/var/macports/distfiles/readline? If it does not contain the files readline-6.1.tar.gz, readline61-001 and readline61-002, try removing the distfiles and trying again:

It only contained the first file you mentioned, readline-6.1.tar.gz, not the second two.

sudo port clean --all readline
sudo port install readline

I ran those commands and readline installed successfully. I then installed the rest of the software, and it all works.

Thank you very much! This was incredibly helpful.

comment:7 Changed 7 years ago by martin.pannier@…

  • Cc martin.pannier@… added

Cc Me!

comment:8 Changed 7 years ago by martin.pannier@…

  • Cc martin.pannier@… removed

Cc Me!

comment:9 Changed 7 years ago by jmroot (Joshua Root)

  • Resolution set to duplicate
  • Status changed from new to closed

Looks the same as #25418.

Note: See TracTickets for help on using tickets.